Closed rgoldberg closed 3 years ago
strange... i just tested it with grails 2.5.1
/ java 8
/ tomcat
and it works for me. Does the _favicon.gsp
exist in your war file?
The file is located in the war at:
/WEB-INF/plugins/console-1.5.5/grails-app/views/console/_favicon.gsp
I debugged, and the Grails code was looking for the file at:
/WEB-INF/grails-app/views/console/_favicon.gsp
The pluginName
variable in the code was either the empty String, or null
, I forget which.
I assume that if the plugin name weren't empty or null
, then the Grails code would have found it.
I'm running Tomcat 7.0.59 on Ubuntu 14.04.2 LTS. I'm using Asset Pipeline 2.4.3 & Resources 1.2.14.
I don't know if there's anything else that might affect the operation of the Console plugin.
I think I figured out what causes the error:
The app that I'm working on has the following line in its Config.groovy
:
grails.gsp.enable.reload = true
When I remove that line, Console 1.5.5 works without the error; if I add it, it fails.
I assume that the setting allows GSPs to be reloaded without restarting the server, but I don't know for sure.
I don't why the app I'm working on has it for both prod & dev (the app was started two years or so before I started working on it, so the setting was inherited).
I will ask if I can remove this property entirely, or at least only have it in dev.
Is it intended that this setting cause the error? If so, can someone somehow output a more informative error message? I assume that this is in Grails core code, not Console plugin code, so it might be hard to output a better error message, unless this setting will mess up all plugins, not just Console.
Or is there a bug in Console 1.5.5?
Or is there a bug in Grails, or elsewhere (like Resources, or Asset Pipeline, etc.)?
I assume that the setting allows GSPs to be reloaded without restarting the server, but I don't know for sure.
That looks to be the case: http://grails.github.io/grails-doc/2.5.0/guide/theWebLayer.html#makingChangesToADeployedApplication
I'm not sure why that would change the behavior of loading templates though. Do you also have grails.gsp.view.dir
defined?
I've had the same issue, and the project did have grails.gsp.enable.reload set to true, but disabling didn't make a difference.
This is an old, large project on Grails 2.2.4 and the problem is probably its codebase, not the plugin, and I don't have time to debug so I've just limited the upgrade to 1.5.4. Good enough for me!
I've had this issue and my solution was update from version 1.5.7 to 1.5.12.
The Console 1.5.5 fails to run in prod mode war in Grails 2.5.1 & Java 8u51.
I get the error at the end of this post.
When I reverted to 1.5.4, it worked.
1.5.4 doesn't have
_favicon.gsp
, or reference it using<g:render template="favicon" />
.