|
CONTENTS DELETED
The author has deleted this message.
|
|
CONTENTS DELETED
The author has deleted this message.
|
|
In reply to this post by lilw
CONTENTS DELETED
The author has deleted this message.
|
|
In reply to this post by lilw
Probably caused by this regexp:
http://grails.1312388.n4.nabble.com/web-xml-UrlMappings-groovy-and-error-page-td3356334.html --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
This has bitten me a couple of times. I've relaxed the regex to allow whitespace and to allow single or double quotes: /\s*["'](\d+?)["']\s*\(.+?\)/
Burt
|
|
In reply to this post by lilw
I'm attempting to provide access to common pieces of my application through a plugin with spring security being one of them.
I have attempted to add the plugin to my application through both inline and install-plugin but when attempting to build the main application I see that it is attempting to build the already built plugin classes that it has a dependency on e.g. Base Directory: /home/test/myApp
Resolving dependencies... Dependencies resolved in 5256ms. Running script /usr/local/grails/current/scripts/Compile.groovy Environment set to development [mkdir] Created dir: /home/test/.grails/1.3.7/projects/myApp/plugin-classes [groovyc] Compiling 36 source files to /home/test/.grails/1.3.7/projects/myApp/plugin-classes [groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: [groovyc] /home/test/.grails/1.3.7/projects/myApp/plugins/common-0.1/grails-app/services/com/myApp/services/security/UserDetailsService.groovy: 8: unable to resolve class org.codehaus.groovy.grails.plugins.springsecurity.SpringSecurityUtils [groovyc] @ line 8, column 1. [groovyc] import org.codehaus.groovy.grails.plugins.springsecurity.SpringSecurityUtils [groovyc] ^ The plugin itself has compiled fine and is installed so there should be no need of doing this. Thanks |
|
<base href="x-msg://52/">This is because of this issue:
Cheers, Jurgen Op 17-jun-2011, om 14:23 heeft [hidden email] het volgende geschreven:
|
|
I don't believe this is the same issue but thanks. Here the main application is trying to compile classes that belong to the plugin and have already been compiled fine, It's been awhile since I last Grails in this manner perhaps its a change in configuration? S.D. From: Jurgen Lust <[hidden email]> To: [hidden email] Sent: Fri, June 17, 2011 5:27:25 AM Subject: Re: [grails-user] Grails attempting to bulid plugin classes Cheers, Jurgen Op 17-jun-2011, om 14:23 heeft [hidden email] het volgende geschreven:
|
|
<base href="x-msg://87/">AFAIK, Grails has always done this when installing a plugin. Every application that has a plugin dependency compiles this plugin to its own plugin-classes directory. And that's when issue 6801 applies. If I'm correct, running grails compile a second time, you will get no more errors.
Jurgen Op 17-jun-2011, om 16:56 heeft [hidden email] het volgende geschreven:
|
|
Thanks for the response,
The plugin is not compiling the second time either. Scenario: base plugin -> common plugin -> spring security, mongodb The base plugin is attempting to compile the common plugin which is then complaining it can't resolve references to classes in the spring security and mongo plugin which are part of it and the plugin itself builds fine. No matter how many times I compile the problem does not go away. From: Jurgen Lust <[hidden email]> To: [hidden email] Sent: Fri, June 17, 2011 1:24:34 PM Subject: Re: [grails-user] Grails attempting to bulid plugin classes Jurgen Op 17-jun-2011, om 16:56 heeft [hidden email] het volgende geschreven:
|
|
<base href="x-msg://92/">How is your dependency on spring-security-core and mongodb defined inside your plugin?
Op 17-jun-2011, om 22:33 heeft [hidden email] het volgende geschreven:
|
|
I ran install plugin so I guess the application.properties, I'm not messing with anything in BuildGonfig From: Jurgen Lust <[hidden email]> To: [hidden email] Sent: Fri, June 17, 2011 1:35:30 PM Subject: Re: [grails-user] Grails attempting to bulid plugin classes Op 17-jun-2011, om 22:33 heeft [hidden email] het volgende geschreven:
|
|
<base href="x-msg://98/">If you ran install-plugin only in your plugin, then that's the problem. You have 2 options for specifying this plugin dependency:
1. The old way, which is about to be deprecated: http://www.grails.org/Plugin+Dependencies 2. The better way, in the BuildConfig of your plugin: http://grails.org/doc/latest/guide/3.%20Configuration.html#3.7.10%20Plugin%20Dependencies This will tell your application that spring-security-core and mongodb are required plugins because of your plugin. Jurgen Op 17-jun-2011, om 22:38 heeft [hidden email] het volgende geschreven:
|
|
I will give this a try but from when I tried this awhile back (I believe 1.2.2) it worked fine. From: Jurgen Lust <[hidden email]> To: [hidden email] Sent: Fri, June 17, 2011 1:44:21 PM Subject: Re: [grails-user] Grails attempting to bulid plugin classes 1. The old way, which is about to be deprecated: http://www.grails.org/Plugin+Dependencies 2. The better way, in the BuildConfig of your plugin: http://grails.org/doc/latest/guide/3.%20Configuration.html#3.7.10%20Plugin%20Dependencies This will tell your application that spring-security-core and mongodb are required plugins because of your plugin. Jurgen Op 17-jun-2011, om 22:38 heeft [hidden email] het volgende geschreven:
|
|
In reply to this post by jlust
Great! That did the trick. I did encounter the problem you were mentioning earlier but the second compile did fix this. Thanks again, S.D. From: Jurgen Lust <[hidden email]> To: [hidden email] Sent: Fri, June 17, 2011 1:44:21 PM Subject: Re: [grails-user] Grails attempting to bulid plugin classes 1. The old way, which is about to be deprecated: http://www.grails.org/Plugin+Dependencies 2. The better way, in the BuildConfig of your plugin: http://grails.org/doc/latest/guide/3.%20Configuration.html#3.7.10%20Plugin%20Dependencies This will tell your application that spring-security-core and mongodb are required plugins because of your plugin. Jurgen Op 17-jun-2011, om 22:38 heeft [hidden email] het volgende geschreven:
|
|
In reply to this post by burtbeckwith
http://jira.grails.org/browse/GRAILS-7662
Best regards, Daniel. PS: I'm unable to change the issue description or the issue type. 2011/6/16 burtbeckwith <[hidden email]> This has bitten me a couple of times. I've relaxed the regex to allow |
| Powered by Nabble | Edit this page |
