PDA

View Full Version : Error upgrading Grails 2.1.1 to 2.2.0 or 2.2.1 on Windows 7



rorama
08-03-2013, 05:53 AM
My application runs very well on Grails 2.1.1 but fails on 2.2.0 or 2.2.1 with the following stacktrace. I am on windows 7. Please help me resolve this issue.


2013-03-08 06:59:32,781 [localhost-startStop-1] ERROR StackTrace - Full Stack Trace:
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'grailsApplication' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.codehaus.groovy.grails.exceptions.GrailsConfig urationException: Class not found loading Grails application: HeaderTagLib
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1455)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 94)
at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:225)
at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:291 )
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:589)
at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:925)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:472)
at org.springframework.web.context.ContextLoader.conf igureAndRefreshWebApplicationContext(ContextLoader .java:388)
at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:293)
at org.codehaus.groovy.grails.web.context.GrailsConte xtLoader.initWebApplicationContext(GrailsContextLo ader.java:69)
at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 111)
at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:4791)
at org.apache.catalina.core.StandardContext.startInte rnal(StandardContext.java:5285)
at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.jav a:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.codehaus.groovy.grails.exceptions.GrailsConfig urationException: Class not found loading Grails application: HeaderTagLib
at org.codehaus.groovy.grails.commons.DefaultGrailsAp plication.<init>(DefaultGrailsApplication.java:131)
at org.codehaus.groovy.grails.commons.GrailsApplicati onFactoryBean.afterPropertiesSet(GrailsApplication FactoryBean.java:106)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1514)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1452)
... 23 more
Caused by: java.lang.ClassNotFoundException: HeaderTagLib
at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
at groovy.lang.GroovyClassLoader.loadClass(GroovyClas sLoader.java:648)
at groovy.lang.GroovyClassLoader.loadClass(GroovyClas sLoader.java:758)
at groovy.lang.GroovyClassLoader.loadClass(GroovyClas sLoader.java:746)
at org.codehaus.groovy.grails.commons.DefaultGrailsAp plication.<init>(DefaultGrailsApplication.java:129)
... 26 more
2013-03-08 06:59:32,785 [localhost-startStop-1] ERROR StackTrace - Full Stack Trace:
org.codehaus.groovy.grails.exceptions.GrailsConfig urationException: Class not found loading Grails application: HeaderTagLib
at org.codehaus.groovy.grails.commons.DefaultGrailsAp plication.<init>(DefaultGrailsApplication.java:131)
at org.codehaus.groovy.grails.commons.GrailsApplicati onFactoryBean.afterPropertiesSet(GrailsApplication FactoryBean.java:106)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1514)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1452)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 94)
at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:225)
at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:291 )
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:589)
at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:925)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:472)
at org.springframework.web.context.ContextLoader.conf igureAndRefreshWebApplicationContext(ContextLoader .java:388)
at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:293)
at org.codehaus.groovy.grails.web.context.GrailsConte xtLoader.initWebApplicationContext(GrailsContextLo ader.java:69)
at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 111)
at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:4791)
at org.apache.catalina.core.StandardContext.startInte rnal(StandardContext.java:5285)
at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.jav a:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: HeaderTagLib
at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
at groovy.lang.GroovyClassLoader.loadClass(GroovyClas sLoader.java:648)
at groovy.lang.GroovyClassLoader.loadClass(GroovyClas sLoader.java:758)
at groovy.lang.GroovyClassLoader.loadClass(GroovyClas sLoader.java:746)
at org.codehaus.groovy.grails.commons.DefaultGrailsAp plication.<init>(DefaultGrailsApplication.java:129)
... 26 more
2013-03-08 06:59:32,786 [localhost-startStop-1] ERROR StackTrace - Full Stack Trace:
java.lang.ClassNotFoundException: HeaderTagLib
at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
at groovy.lang.GroovyClassLoader.loadClass(GroovyClas sLoader.java:648)
at groovy.lang.GroovyClassLoader.loadClass(GroovyClas sLoader.java:758)
at groovy.lang.GroovyClassLoader.loadClass(GroovyClas sLoader.java:746)
at org.codehaus.groovy.grails.commons.DefaultGrailsAp plication.<init>(DefaultGrailsApplication.java:129)
at org.codehaus.groovy.grails.commons.GrailsApplicati onFactoryBean.afterPropertiesSet(GrailsApplication FactoryBean.java:106)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1514)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1452)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 94)
at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:225)
at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:291 )
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:589)
at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:925)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:472)
at org.springframework.web.context.ContextLoader.conf igureAndRefreshWebApplicationContext(ContextLoader .java:388)
at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:293)
at org.codehaus.groovy.grails.web.context.GrailsConte xtLoader.initWebApplicationContext(GrailsContextLo ader.java:69)
at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 111)
at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:4791)
at org.apache.catalina.core.StandardContext.startInte rnal(StandardContext.java:5285)
at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.jav a:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
2013-03-08 06:59:32,786 [localhost-startStop-1] ERROR StackTrace - Full Stack Trace:
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'grailsApplication' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.codehaus.groovy.grails.exceptions.GrailsConfig urationException: Class not found loading Grails application: HeaderTagLib
at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.jav a:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.codehaus.groovy.grails.exceptions.GrailsConfig urationException: Class not found loading Grails application: HeaderTagLib
... 5 more
Caused by: java.lang.ClassNotFoundException: HeaderTagLib
at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
... 5 more
2013-03-08 06:59:32,787 [localhost-startStop-1] ERROR StackTrace - Full Stack Trace:
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'grailsApplication' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.codehaus.groovy.grails.exceptions.GrailsConfig urationException: Class not found loading Grails application: HeaderTagLib
at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.jav a:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.codehaus.groovy.grails.exceptions.GrailsConfig urationException: Class not found loading Grails application: HeaderTagLib
... 5 more
Caused by: java.lang.ClassNotFoundException: HeaderTagLib
at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
... 5 more
2013-03-08 06:59:32,787 [localhost-startStop-1] ERROR StackTrace - Full Stack Trace:
org.codehaus.groovy.grails.exceptions.GrailsConfig urationException: Class not found loading Grails application: HeaderTagLib
at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.jav a:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: HeaderTagLib
at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
... 5 more
2013-03-08 06:59:32,787 [localhost-startStop-1] ERROR StackTrace - Full Stack Trace:
java.lang.ClassNotFoundException: HeaderTagLib
at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.jav a:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
2013-03-08 06:59:32,787 [localhost-startStop-1] ERROR StackTrace - Full Stack Trace:
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'grailsApplication' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.codehaus.groovy.grails.exceptions.GrailsConfig urationException: Class not found loading Grails application: HeaderTagLib
at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.jav a:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.codehaus.groovy.grails.exceptions.GrailsConfig urationException: Class not found loading Grails application: HeaderTagLib
... 5 more
Caused by: java.lang.ClassNotFoundException: HeaderTagLib
at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
... 5 more
2013-03-08 06:59:32,932 [localhost-startStop-1] ERROR StackTrace - Full Stack Trace:
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'grailsApplication' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.codehaus.groovy.grails.exceptions.GrailsConfig urationException: Class not found loading Grails application: HeaderTagLib
at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.jav a:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.codehaus.groovy.grails.exceptions.GrailsConfig urationException: Class not found loading Grails application: HeaderTagLib
... 5 more
Caused by: java.lang.ClassNotFoundException: HeaderTagLib
at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
... 5 more
2013-03-08 06:59:32,932 [localhost-startStop-1] ERROR StackTrace - Full Stack Trace:
org.codehaus.groovy.grails.exceptions.GrailsConfig urationException: Class not found loading Grails application: HeaderTagLib
at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.jav a:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: HeaderTagLib
at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
... 5 more
2013-03-08 06:59:32,933 [localhost-startStop-1] ERROR StackTrace - Full Stack Trace:
java.lang.ClassNotFoundException: HeaderTagLib
at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.jav a:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)

...

rorama
08-03-2013, 04:55 PM
I am getting some clue because my application is now running provided I delete the taglib files and also disable references to the taglibs. So, is there anything that changed in the implementation of taglibs in Grails 2.2.* ? I still need the taglibs seriously e.g. HeaderTagLib, LoginTaglib, etc. Thanks.

rorama
09-03-2013, 04:47 PM
Got it!

It appears that grails 2.2.* does not like package declarations in taglibs. I removed "package PACKAGENAME" from the top of all taglibs and my app now works like magic.