Question

I'm testing out my Grails app in Jetty (v.7.0.2). I've created the WAR (grails prod war), and added it to the webapps directory for Jetty. I've removed the "root" folder that was in there. After bringing up my browser, I'm clicking on various links to make sure I can see all of the appropriate pages. However, when I get to the link that starts a webflow, I get an error:

Problem accessing /testapp/WEB-INF/grails-app/views//foo/start/beginHere.jsp. Reason: Not found.

I've got a controller, called FooController, with a webflow named startFlow. The first action that is run is beginHere. I've tested this by running Grails via the command line, so I've seen this work.

Could the double slash be causing a problem? If so, how do I fix that? Why is it looking for a JSP file instead of a GSP?

Was it helpful?

Solution

Found the answer. It turns out that its an issue with Jetty, and how it handles double slashes in the URL (JETTY-386). The reason it works in Tomcat is because Tomcat handles them the way I was expecting them.

Now its just a matter of setting the configuration appropriately...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top