Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.2
-
Fix Version/s: 0.2
-
Component/s: Controllers
-
Labels:None
-
Environment:Windows XP
Description
I followed the Grails on Oracle tutorial as described on http://www.oracle.com/technology/pub/articles/grall-grails.html using the Grails 0.2 snapshot. I only didn't setup a conenction to the Oracle database, resulting in using HSQL. The app works well in the 'grails run-app' Jetty environment and also after packaging the war it works in Tomcat.
However I also tested the app on Sun App Server 5.0 (aka GlassFish) and it doesn't work. I can go to the home where the Comics controller is displayed. When I click I get the following error:
java.io.FileNotFoundException: /WEB-INF/grails-app/views//comics/index.jsp
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:317)
javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:91)
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:961)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:738)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:658)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347)
javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:75)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:137)
It seems GlassFish is more stricter then Jetty and Tomcat with double slashes in path a to a file.
Should not be hard to fix this within Grails, making it also run on GlassFish!
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits