seeing a strange error on application startup

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

seeing a strange error on application startup

harjit@teslagovernment.com
Hi there,

I had a running application. I did a grails clean and when I re-started the application using run-app. The app keeps giving an error. Any ideas why ?


Error automatically restarting container: Error creating bean with name 'grailsApplication': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.codehaus.groovy.grails.commons.DefaultGrailsApplication]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/codehaus/groovy/grails/plugins/springsecurity/GrailsUser  [groovyc] Compiling 1 source file to /Users/harjitsingh/.grails/1.3.6/projects/pix-today/classesorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsApplication': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.codehaus.groovy.grails.commons.DefaultGrailsApplication]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/codehaus/groovy/grails/plugins/springsecurity/GrailsUser

at grails.spring.BeanBuilder.createApplicationContext(BeanBuilder.java:582)

at grails.spring.BeanBuilder$createApplicationContext.call(Unknown Source)

at _GrailsBootstrap_groovy$_run_closure1.doCall(_GrailsBootstrap_groovy:58)

at _GrailsBootstrap_groovy$_run_closure5_closure15.doCall(_GrailsBootstrap_groovy:135)

at _GrailsBootstrap_groovy$_run_closure5_closure15.doCall(_GrailsBootstrap_groovy)

at _GrailsPackage_groovy$_run_closure8.doCall(_GrailsPackage_groovy:299)

at _GrailsPackage_groovy$_run_closure8.call(_GrailsPackage_groovy)

at _GrailsBootstrap_groovy$_run_closure5.doCall(_GrailsBootstrap_groovy:128)

at Console$_run_closure2.doCall(Console.groovy:62)

at Console$_run_closure1.doCall(Console.groovy:32)

at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)

at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)

at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)

at gant.Gant.withBuildListeners(Gant.groovy:427)

at gant.Gant.this$2$withBuildListeners(Gant.groovy)

at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)

at gant.Gant.dispatch(Gant.groovy:415)

at gant.Gant.this$2$dispatch(Gant.groovy)

at gant.Gant.invokeMethod(Gant.groovy)

at gant.Gant.executeTargets(Gant.groovy:590)

at gant.Gant.executeTargets(Gant.groovy:589)

Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.codehaus.groovy.grails.commons.DefaultGrailsApplication]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/codehaus/groovy/grails/plugins/springsecurity/GrailsUser ... 21 more

Caused by: java.lang.NoClassDefFoundError: org/codehaus/groovy/grails/plugins/springsecurity/GrailsUser

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)

at java.lang.ClassLoader.defineClass(ClassLoader.java:615)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)

at java.net.URLClassLoader.access$000(URLClassLoader.java:58)

at java.net.URLClassLoader$1.run(URLClassLoader.java:197)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

at java.lang.ClassLoader.loadClass(ClassLoader.java:295) ... 21 more

Caused by: java.lang.ClassNotFoundException: org.codehaus.groovy.grails.plugins.springsecurity.GrailsUser

at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 32 more


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: seeing a strange error on application startup

rgorzkow
Hi,

Do you have spring-security-core plugin installed?
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: seeing a strange error on application startup

harjit@teslagovernment.com
Yes, I do. Infact, I cleaned all my plugins and grails downloaded all the plugins so not sure what's going on here.

- Harjit
On Feb 22, 2012, at 5:34 PM, rgorzkow wrote:

> Hi,
>
> Do you have spring-security-core plugin installed?
>
>
> --
> View this message in context: http://grails.1312388.n4.nabble.com/seeing-a-strange-error-on-application-startup-tp4411846p4412046.html
> Sent from the Grails - user mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: seeing a strange error on application startup

harjit@teslagovernment.com
I found the source of the problem. I had renamed a class using the IDE for some reasons the class was re-named to correct class but the file wasn't. I found out by using the -verboseCompile option as to which class it was trying to compile. The error which I saw in the console didn't actually match the fix. I'm glad I was able to figure it out. Just adding my comments so that other people can get an idea as to what they need to do in such situations.

Thanks

- Harjit
On Feb 23, 2012, at 9:43 AM, [hidden email] wrote:

> Yes, I do. Infact, I cleaned all my plugins and grails downloaded all the plugins so not sure what's going on here.
>
> - Harjit
> On Feb 22, 2012, at 5:34 PM, rgorzkow wrote:
>
>> Hi,
>>
>> Do you have spring-security-core plugin installed?
>>
>>
>> --
>> View this message in context: http://grails.1312388.n4.nabble.com/seeing-a-strange-error-on-application-startup-tp4411846p4412046.html
>> Sent from the Grails - user mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>   http://xircles.codehaus.org/manage_email
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Loading...