Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grails run-app crashes when starting with a clean ~/.grails/ directory #11

Open
spundun opened this issue Aug 24, 2013 · 3 comments
Open

Comments

@spundun
Copy link

spundun commented Aug 24, 2013

Steps:
grails create-app test
cd test
grails install-plugin haml # compile ":haml:0.3" also acts the same way.

Add that snippet to grails-app/conf/spring/resource.groovy

rm -r ~/.grails
grails run-app

I get the following

test spundun$ grails run-app
| Compiling 122 source files

| Compiling 8 source files.....
| Error Exception occurred trigger event [PackagingEnd]: com.cadrlife.jhaml.JHamlBatchConverter (Use --stacktrace to see the full trace)
| Running Grails application
Aug 23, 2013 6:17:35 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Aug 23, 2013 6:17:35 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Tomcat
Aug 23, 2013 6:17:35 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.39
Aug 23, 2013 6:17:35 PM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment
INFO: No global web.xml found
Aug 23, 2013 6:17:35 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
| Error 2013-08-23 18:17:38,209 [localhost-startStop-1] ERROR context.GrailsContextLoader - Error initializing the application: Error creating bean with name 'instanceTagLibraryApi': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.codehaus.groovy.grails.plugins.web.api.TagLibraryApi.setGspTagLibraryLookup(org.codehaus.groovy.grails.web.pages.TagLibraryLookup); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gspTagLibraryLookup': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.codehaus.groovy.grails.plugins.web.taglib.RenderTagLib': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPagesTemplateEngine': Cannot resolve reference to bean 'groovyPageLocator' while setting bean property 'groovyPageLocator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageLocator': Cannot resolve reference to bean 'groovyPageResourceLoader' while setting bean property 'resourceLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageResourceLoader': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/cadrlife/jhaml/JHamlBatchConverter
Message: Error creating bean with name 'instanceTagLibraryApi': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.codehaus.groovy.grails.plugins.web.api.TagLibraryApi.setGspTagLibraryLookup(org.codehaus.groovy.grails.web.pages.TagLibraryLookup); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gspTagLibraryLookup': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.codehaus.groovy.grails.plugins.web.taglib.RenderTagLib': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPagesTemplateEngine': Cannot resolve reference to bean 'groovyPageLocator' while setting bean property 'groovyPageLocator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageLocator': Cannot resolve reference to bean 'groovyPageResourceLoader' while setting bean property 'resourceLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageResourceLoader': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/cadrlife/jhaml/JHamlBatchConverter
Line | Method
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync


| 138 | run in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run in ''
^ 680 | run . . in java.lang.Thread

Caused by BeanCreationException: Could not autowire method: public void org.codehaus.groovy.grails.plugins.web.api.TagLibraryApi.setGspTagLibraryLookup(org.codehaus.groovy.grails.web.pages.TagLibraryLookup); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gspTagLibraryLookup': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.codehaus.groovy.grails.plugins.web.taglib.RenderTagLib': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPagesTemplateEngine': Cannot resolve reference to bean 'groovyPageLocator' while setting bean property 'groovyPageLocator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageLocator': Cannot resolve reference to bean 'groovyPageResourceLoader' while setting bean property 'resourceLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageResourceLoader': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/cadrlife/jhaml/JHamlBatchConverter
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync


| 138 | run in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run in ''
^ 680 | run . . in java.lang.Thread

Caused by BeanCreationException: Error creating bean with name 'gspTagLibraryLookup': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.codehaus.groovy.grails.plugins.web.taglib.RenderTagLib': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPagesTemplateEngine': Cannot resolve reference to bean 'groovyPageLocator' while setting bean property 'groovyPageLocator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageLocator': Cannot resolve reference to bean 'groovyPageResourceLoader' while setting bean property 'resourceLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageResourceLoader': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/cadrlife/jhaml/JHamlBatchConverter
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync


| 138 | run in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run in ''
^ 680 | run . . in java.lang.Thread

Caused by BeanCreationException: Error creating bean with name 'org.codehaus.groovy.grails.plugins.web.taglib.RenderTagLib': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPagesTemplateEngine': Cannot resolve reference to bean 'groovyPageLocator' while setting bean property 'groovyPageLocator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageLocator': Cannot resolve reference to bean 'groovyPageResourceLoader' while setting bean property 'resourceLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageResourceLoader': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/cadrlife/jhaml/JHamlBatchConverter
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync


| 138 | run in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run in ''
^ 680 | run . . in java.lang.Thread

Caused by BeanCreationException: Error creating bean with name 'groovyPagesTemplateEngine': Cannot resolve reference to bean 'groovyPageLocator' while setting bean property 'groovyPageLocator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageLocator': Cannot resolve reference to bean 'groovyPageResourceLoader' while setting bean property 'resourceLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageResourceLoader': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/cadrlife/jhaml/JHamlBatchConverter
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync


| 138 | run in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run in ''
^ 680 | run . . in java.lang.Thread

Caused by BeanCreationException: Error creating bean with name 'groovyPageLocator': Cannot resolve reference to bean 'groovyPageResourceLoader' while setting bean property 'resourceLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageResourceLoader': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/cadrlife/jhaml/JHamlBatchConverter
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync


| 138 | run in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run in ''
^ 680 | run . . in java.lang.Thread

Caused by BeanCreationException: Error creating bean with name 'groovyPageResourceLoader': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/cadrlife/jhaml/JHamlBatchConverter
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync


| 138 | run in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run in ''
^ 680 | run . . in java.lang.Thread

Caused by BeanInstantiationException: Could not instantiate bean class [com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/cadrlife/jhaml/JHamlBatchConverter
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync


| 138 | run in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run in ''
^ 680 | run . . in java.lang.Thread

Caused by NoClassDefFoundError: com/cadrlife/jhaml/JHamlBatchConverter
->> 19 | in com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader


| 303 | innerRun in java.util.concurrent.FutureTask$Sync
| 138 | run . . in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run . . in ''
^ 680 | run in java.lang.Thread

Caused by ClassNotFoundException: com.cadrlife.jhaml.JHamlBatchConverter
->> 202 | run in java.net.URLClassLoader$1


| 190 | findClass in java.net.URLClassLoader
| 306 | loadClass in java.lang.ClassLoader
| 247 | loadClass in ''
| 19 | . in com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader
| 303 | innerRun in java.util.concurrent.FutureTask$Sync
| 138 | run . . in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run . . in ''
^ 680 | run in java.lang.Thread
Spundun-Bhatts-MacBook-Pro:test spundun$ cd ../
Spundun-Bhatts-MacBook-Pro:grails spundun$ mv test test.bak3
Spundun-Bhatts-MacBook-Pro:grails spundun$ grails create-app test
| Created Grails Application at /Users/spundun/Documents/Dikko/grails/test
Spundun-Bhatts-MacBook-Pro:grails spundun$ cd test
Spundun-Bhatts-MacBook-Pro:test spundun$ diff -ru . ../test.bak3/ |less
Spundun-Bhatts-MacBook-Pro:test spundun$ vim grails-app/conf/BuildConfig.groovy
Spundun-Bhatts-MacBook-Pro:test spundun$ cp ../test.bak3/grails-app/conf/spring/resources.groovy grails-app/conf/spring/resources.groovy
Spundun-Bhatts-MacBook-Pro:test spundun$ rm -r ~/.grails/
Spundun-Bhatts-MacBook-Pro:test spundun$ grails run-app
| Compiling 122 source files
| Compiling 8 source files.....
| Compiling 8 source files.....
| Error Exception occurred trigger event [PackagingEnd]: com.cadrlife.jhaml.JHamlBatchConverter (Use --stacktrace to see the full trace)
| Running Grails application
Aug 23, 2013 6:20:32 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Aug 23, 2013 6:20:32 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Tomcat
Aug 23, 2013 6:20:32 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.39
Aug 23, 2013 6:20:32 PM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment
INFO: No global web.xml found
Aug 23, 2013 6:20:33 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
| Error 2013-08-23 18:20:35,826 [localhost-startStop-1] ERROR context.GrailsContextLoader - Error initializing the application: Error creating bean with name 'instanceTagLibraryApi': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.codehaus.groovy.grails.plugins.web.api.TagLibraryApi.setGspTagLibraryLookup(org.codehaus.groovy.grails.web.pages.TagLibraryLookup); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gspTagLibraryLookup': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.codehaus.groovy.grails.plugins.web.taglib.RenderTagLib': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPagesTemplateEngine': Cannot resolve reference to bean 'groovyPageLocator' while setting bean property 'groovyPageLocator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageLocator': Cannot resolve reference to bean 'groovyPageResourceLoader' while setting bean property 'resourceLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageResourceLoader': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/cadrlife/jhaml/JHamlBatchConverter
Message: Error creating bean with name 'instanceTagLibraryApi': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.codehaus.groovy.grails.plugins.web.api.TagLibraryApi.setGspTagLibraryLookup(org.codehaus.groovy.grails.web.pages.TagLibraryLookup); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gspTagLibraryLookup': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.codehaus.groovy.grails.plugins.web.taglib.RenderTagLib': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPagesTemplateEngine': Cannot resolve reference to bean 'groovyPageLocator' while setting bean property 'groovyPageLocator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageLocator': Cannot resolve reference to bean 'groovyPageResourceLoader' while setting bean property 'resourceLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageResourceLoader': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/cadrlife/jhaml/JHamlBatchConverter
Line | Method
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync


| 138 | run in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run in ''
^ 680 | run . . in java.lang.Thread

Caused by BeanCreationException: Could not autowire method: public void org.codehaus.groovy.grails.plugins.web.api.TagLibraryApi.setGspTagLibraryLookup(org.codehaus.groovy.grails.web.pages.TagLibraryLookup); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gspTagLibraryLookup': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.codehaus.groovy.grails.plugins.web.taglib.RenderTagLib': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPagesTemplateEngine': Cannot resolve reference to bean 'groovyPageLocator' while setting bean property 'groovyPageLocator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageLocator': Cannot resolve reference to bean 'groovyPageResourceLoader' while setting bean property 'resourceLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageResourceLoader': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/cadrlife/jhaml/JHamlBatchConverter
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync


| 138 | run in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run in ''
^ 680 | run . . in java.lang.Thread

Caused by BeanCreationException: Error creating bean with name 'gspTagLibraryLookup': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.codehaus.groovy.grails.plugins.web.taglib.RenderTagLib': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPagesTemplateEngine': Cannot resolve reference to bean 'groovyPageLocator' while setting bean property 'groovyPageLocator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageLocator': Cannot resolve reference to bean 'groovyPageResourceLoader' while setting bean property 'resourceLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageResourceLoader': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/cadrlife/jhaml/JHamlBatchConverter
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync


| 138 | run in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run in ''
^ 680 | run . . in java.lang.Thread

Caused by BeanCreationException: Error creating bean with name 'org.codehaus.groovy.grails.plugins.web.taglib.RenderTagLib': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPagesTemplateEngine': Cannot resolve reference to bean 'groovyPageLocator' while setting bean property 'groovyPageLocator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageLocator': Cannot resolve reference to bean 'groovyPageResourceLoader' while setting bean property 'resourceLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageResourceLoader': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/cadrlife/jhaml/JHamlBatchConverter
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync


| 138 | run in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run in ''
^ 680 | run . . in java.lang.Thread

Caused by BeanCreationException: Error creating bean with name 'groovyPagesTemplateEngine': Cannot resolve reference to bean 'groovyPageLocator' while setting bean property 'groovyPageLocator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageLocator': Cannot resolve reference to bean 'groovyPageResourceLoader' while setting bean property 'resourceLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageResourceLoader': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/cadrlife/jhaml/JHamlBatchConverter
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync


| 138 | run in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run in ''
^ 680 | run . . in java.lang.Thread

Caused by BeanCreationException: Error creating bean with name 'groovyPageLocator': Cannot resolve reference to bean 'groovyPageResourceLoader' while setting bean property 'resourceLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groovyPageResourceLoader': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/cadrlife/jhaml/JHamlBatchConverter
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync


| 138 | run in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run in ''
^ 680 | run . . in java.lang.Thread

Caused by BeanCreationException: Error creating bean with name 'groovyPageResourceLoader': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/cadrlife/jhaml/JHamlBatchConverter
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync


| 138 | run in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run in ''
^ 680 | run . . in java.lang.Thread

Caused by BeanInstantiationException: Could not instantiate bean class [com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/cadrlife/jhaml/JHamlBatchConverter
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync


| 138 | run in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run in ''
^ 680 | run . . in java.lang.Thread

Caused by NoClassDefFoundError: com/cadrlife/jhaml/JHamlBatchConverter
->> 19 | in com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader


| 303 | innerRun in java.util.concurrent.FutureTask$Sync
| 138 | run . . in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run . . in ''
^ 680 | run in java.lang.Thread

Caused by ClassNotFoundException: com.cadrlife.jhaml.JHamlBatchConverter
->> 202 | run in java.net.URLClassLoader$1


| 190 | findClass in java.net.URLClassLoader
| 306 | loadClass in java.lang.ClassLoader
| 247 | loadClass in ''
| 19 | . in com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader
| 303 | innerRun in java.util.concurrent.FutureTask$Sync
| 138 | run . . in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run . . in ''
^ 680 | run in java.lang.Thread

@spundun
Copy link
Author

spundun commented Aug 24, 2013

The first error "Error Exception occurred trigger event [PackagingEnd]: com.cadrlife.jhaml.JHamlBatchConverter (Use --stacktrace to see the full trace)" is ignored, but the second error makes it crash.

If you run grails run-app again, then the error goes away.

@spundun
Copy link
Author

spundun commented Aug 24, 2013

I can see the issue with both 2.2.3 and 2.2.4 ( I think it's also an issue with 2.3.0.RC1 but I should verify that again)

@raymyers
Copy link
Owner

Thanks for all the detail. I'm finally getting around to taking a look at this. This looks like an issue with the difference in plugin dependency resolution between Grails 1 and 2 (i.e. in Grails 2 they actually have to do real dependency resolution).

Last time I tried upgrade the haml plugin to Grails there were complications (possibly because JHaml is only in a non-standard repo), but I'll give it another try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants