grails-plugin

How to install Grails 2.4.4 plugin from zip?

谁说胖子不能爱 提交于 2019-12-25 03:32:20
问题 I have a need for the grails-spring-security-ldap plugin in 2.4.4. However, the latest maven-published plugin doesn't work with 2.4.X, but commits have been made to the git repo (https://github.com/grails-plugins/grails-spring-security-ldap) to make it work. I've downloaded the code and successfully packaged it a zip file. I've also read that you can no longer drop zips in the the project/lib directory and expect it to be found after adding it to BuildConfig.groovy. So, I installed to my

How to install Grails 2.4.4 plugin from zip?

折月煮酒 提交于 2019-12-25 03:32:07
问题 I have a need for the grails-spring-security-ldap plugin in 2.4.4. However, the latest maven-published plugin doesn't work with 2.4.X, but commits have been made to the git repo (https://github.com/grails-plugins/grails-spring-security-ldap) to make it work. I've downloaded the code and successfully packaged it a zip file. I've also read that you can no longer drop zips in the the project/lib directory and expect it to be found after adding it to BuildConfig.groovy. So, I installed to my

Redirect Loop with Requestmap with grails spring security core 2.0RC4

末鹿安然 提交于 2019-12-25 03:27:29
问题 I have been facing Failed to load resource: net::ERR_TOO_MANY_REDIRECTS with grails 2.4.4. I have User , Role and Requestmap in com.usermanagement.auth package(those were generated with s2-quickstart ). Requestmaps, users and roles seem to be stored in the database(I am using mysql). BuildConfig.groovy compile ":spring-security-core:2.0-RC4" Bootstrap.groovy on init method User admin = new User(username:'admin', password:'secret', enabled:true).save() User john = new User(username:'john',

Configure ldap in grails 2.2.4 spring security core 2.0?

偶尔善良 提交于 2019-12-25 02:39:16
问题 Im currently working on integration of my app with company ldap. While i was able to make application actually check users on ldap for authentication, users are not able to overcome spring security ROLES configuration. Im getting: "Denied Sorry, you're not authorized to view this page." Every time i try to enter page that has @Secured(['ROLE_USER']) on it. I would like to know how to add every user on LDAP to have ROLE_USER so he will be able to fully use application. My ldap configuration is

Error loading UrlMappingsPlugin in Grails

房东的猫 提交于 2019-12-24 12:24:04
问题 When creating a basic grails plugin and compiling with Maven, I get this error message: Error loading plugin manager: Could not create a new instance of class [org.codehaus.groovy.grails.plugins.web.mapping.UrlMappingsGrailsPlugin]! (Use --stacktrace to see the full trace) Grails version 2.4.3 回答1: The solution to this issue is to add the tomcat plugin (no idea why): Add this to BuildConfig.groovy: build ":tomcat:7.0.55" Then you may need to regenerate the pom.xml file using grails create-pom

get current user in grails spock unit testing which uses spring security

旧城冷巷雨未停 提交于 2019-12-24 05:57:50
问题 package com.rohan import grails.test.mixin.* import spock.lang.Specification import grails.plugins.springsecurity.SpringSecurityService import grails.test.mixin.domain.DomainClassUnitTestMixin import com.rohan.meta.MetaServiceCategory @TestFor(ProjectDashBoardController) @Mock([SpringSecurityService,User,Project,MetaServiceCategory,ProjectIntroduction,ProjectDetails,ProjectAdditionalInfo,SPCompany,BuyerCompany,Conversation,ServiceCategory,UserAuthService,TimeSheetService,ProjectService])

Unable to add Neo4j GORM plugin to a Grails project

僤鯓⒐⒋嵵緔 提交于 2019-12-24 04:26:33
问题 I want to use Neo4j graph database for my Grails project. I created a new Grails project (i'm using Intellij Ultimate Edition). The app runs fine. When i try to add the Neo4j dependency (compile ":neo4j:2.0.0-M02") in my BuildConfig.groovy and try to update the project I get the following errors in the console: Error | Resolve error obtaining dependencies: Could not find artifact org.neo4j:neo4j-jdbc:jar:2.0.2 in grailsCentral (https://repo.grails.org/grails/plugins) (Use --stacktrace to see

Grails rendering plugin does not render images when deployed

£可爱£侵袭症+ 提交于 2019-12-23 18:53:07
问题 I am generating a pdf using grails rendering plugin. When in development, I include images using tag with src to an image on server. It works fine, but not anymore when the app is deployed. The images just disappear. I am redering through a template, so when i call this template to in gsp, it is ok (ie i see the html version of the pdf with the images), bu when called in my controller using renderPdf, no images. Again only in deployed app (war), not in development. Any hints? EDIT: Under

How to configure a grails plugin from another grails plugin

人走茶凉 提交于 2019-12-23 12:53:30
问题 I am trying to write a plugin which I can reuse in several grails applications. The plugin should basically be a wrapper for the spring security core and the ldap plugin. Which means it should contain: The domain classes for the user/roles The configuration for spring security (the mapping to these domain classes, some default URL access role configuration) My problem is that i can't get the configuration inside my plugin working. I am confused by the examples I found so far: sometimes I read

How to skip plugin update prompt when running GRAILS run-app?

拟墨画扇 提交于 2019-12-23 09:40:18
问题 Started a new project using Grails RC3 (Windows 7 64 bit Java 1.6) Installed spring-security-core plugin Now whenever i do a GRAILS run-app it prompts me to upgrade webxml-1.4 to 1.3.1 over and over again I use IntelliJ 10.5.3 and the console does not let me type NO so I can't use the IDE to debug. Possible solutions I see in order of preference - Find a way to skip the plugin upgrade question - Manually modify the spring-security-core config somewhere to depend on webxml 1.4 - Switch to STS