I have generated a war file successfully but while deploying, it gives me error as shown below can you give me a solution to solve this error.

[2011-06-09 10:58:08:468] ERROR org.springframework.web.context.ContextLoader Context initialization failed org.springframework.beans.factory.access.BootstrapException: Error executing bootstraps; nested exception is org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.Error: Unresolved compilation problem:

   at org.codehaus.groovy.grails.web.context.GrailsContextLoader.createWebApplicationContext(GrailsContextLoader.java:87)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:850)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:724)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
   at org.apache.catalina.core.StandardService.start(StandardService.java:516)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.Error: Unresolved compilation problem:

   at grails.spring.BeanBuilder.invokeBeanDefiningClosure(BeanBuilder.java:723)
   at grails.spring.BeanBuilder.beans(BeanBuilder.java:573)
   at grails.spring.BeanBuilder.invokeMethod(BeanBuilder.java:519)

Caused by: java.lang.Error: Unresolved compilation problem:

   at SpringSecurityCoreGrailsPlugin$_closure2.doCall(SpringSecurityCoreGrailsPlugin.groovy:168)
   at SpringSecurityCoreGrailsPlugin$_closure2.doCall(SpringSecurityCoreGrailsPlugin.groovy)
   ... 3 more
link|flag

75% accept rate
1  
Try running grails clean and rebuilding the war. If that doesn't work, update with the Grails version and plugin version you're using. – Burt Beckwith 3 hours ago
yes,i did grails clean ,now able to deploy war – Vinay 3 hours ago
some times after doing grails clean,not able to deploy war – Vinay 2 hours ago

Know someone who can answer? Share a link to this question via email, twitter, or facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.