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

Stacktrace in view with less plugin installed #13

Open
ruccola opened this issue Feb 27, 2013 · 0 comments
Open

Stacktrace in view with less plugin installed #13

ruccola opened this issue Feb 27, 2013 · 0 comments

Comments

@ruccola
Copy link

ruccola commented Feb 27, 2013

I installed the less plugin in an existing project (upgraded to Grails 2.2) and now when I try to run the application I get a stack trace. It works fine when I uninstall the plugin.

2013-02-27 15:40:41,363 ERROR [ResourceProcessor] Unable to load resources
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'LessResourceMapperInstance': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lessResourcesLessCompilerService': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'transactionManager' is defined
at grails.spring.BeanBuilder.createApplicationContext(BeanBuilder.java:593)
at org.grails.plugin.resource.mapper.ResourceMappersFactory.createResourceMappers(ResourceMappersFactory.groovy:43)
at org.grails.plugin.resource.ResourceProcessor.loadMappers(ResourceProcessor.groovy:1002)
at org.grails.plugin.resource.ResourceProcessor.reloadAll(ResourceProcessor.groovy:1071)
at ResourcesGrailsPlugin$_closure3.doCall(ResourcesGrailsPlugin.groovy:172)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lessResourcesLessCompilerService': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'transactionManager' is defined
... 10 more
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'transactionManager' is defined
... 10 more

I also get an exception in the view when running the app:

org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error applying layout : main
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
java.lang.Thread.run(Thread.java:722)
root cause

org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error processing GroovyPageView: Error executing tag <r:layoutResources>: No module found with name [application]
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
java.lang.Thread.run(Thread.java:722)
root cause

org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <r:layoutResources>: No module found with name [application]
Users_johancarlsson_workspace_reportweb_grails_app_views_layouts_main_gsp$_run_closure1.doCall(main.gsp:11)
Users_johancarlsson_workspace_reportweb_grails_app_views_layouts_main_gsp.run(main.gsp:14)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
java.lang.Thread.run(Thread.java:722)
root cause

java.lang.IllegalArgumentException: No module found with name [application]
org.grails.plugin.resource.ResourceProcessor.getAllModuleNamesRequired(ResourceProcessor.groovy:1132)
org.grails.plugin.resource.ResourceTagLib$_closure6.doCall(ResourceTagLib.groovy:398)
Users_johancarlsson_workspace_reportweb_grails_app_views_layouts_main_gsp$_run_closure1.doCall(main.gsp:11)
Users_johancarlsson_workspace_reportweb_grails_app_views_layouts_main_gsp.run(main.gsp:14)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
java.lang.Thread.run(Thread.java:722)

I'm certain that I have a module called "application" in ApplicationResources.groovy, so I wonder why it says I don't.

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

1 participant