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

Plugin Broken with Resources 1.2.9 #12

Open
ianpgall opened this issue Oct 30, 2014 · 2 comments
Open

Plugin Broken with Resources 1.2.9 #12

ianpgall opened this issue Oct 30, 2014 · 2 comments

Comments

@ianpgall
Copy link

I recently upgraded the Resources plugin to version 1.2.13 (from 1.2.7), to have the most recent version. With that upgrade, the application suddenly couldn't find GSP resources anymore. I backtracked the version of the Resources plugin to 1.2.8, to find that it's the last version that works (with the GSP Resources plugin, version 0.4.4). If it helps, here's the stacktrace:

org.codehaus.groovy.grails.web.mapping.exceptions.UrlMappingException: Error mapping onto view [/index]: Error applying layout : main
    at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
    at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
    at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error applying layout : main
    ... 7 more
Caused by: org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error processing GroovyPageView: Error executing tag <r:layoutResources>: Module [applicationFiles] depends on resource [/js/util/urls.js.gsp] but the file cannot be found
    ... 7 more
Caused by: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <r:layoutResources>: Module [applicationFiles] depends on resource [/js/util/urls.js.gsp] but the file cannot be found
    at home_igall_git_ggsafechx_grails_app_views_layouts_main_gsp$_run_closure1.doCall(home_igall_git_ggsafechx_grails_app_views_layouts_main_gsp:55)
    at home_igall_git_ggsafechx_grails_app_views_layouts_main_gsp.run(home_igall_git_ggsafechx_grails_app_views_layouts_main_gsp:60)
    ... 7 more
Caused by: java.lang.IllegalArgumentException: Module [applicationFiles] depends on resource [/js/util/urls.js.gsp] but the file cannot be found
    at org.grails.plugin.resource.ResourceTagLib$_closure10.doCall(ResourceTagLib.groovy:456)
    at org.grails.plugin.resource.ResourceTagLib$_closure6.doCall(ResourceTagLib.groovy:377)
    ... 9 more

Like I said, just changing the Resources plugin down to version 1.2.8, and without any other changes, everything works fine.

Is there anything that can be done? Or is this a local problem with my app?

@mckenfra
Copy link
Owner

mckenfra commented Nov 2, 2014

Thanks for raising this. I'll need to take a look at what's changed with the resources plugin in v1.2.9. I'll get back to you once I've looked into it.

Cheers,
Francis

@ianpgall
Copy link
Author

ianpgall commented Nov 3, 2014

@mckenfra Sounds good, thanks! I did try looking at the Resources plugin's source code and commits between 1.2.8 and 1.2.9, but I'm really not sure what to look for :(

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