Freddy Daoud pisze:
> Is 'elements' the context root of your web application?
> If so, you need to use <jsp:include page="/AdminMenu.action"/> instead.
> That is why, in the snippet from the Stripes book, there is the attribute
> prependContext="false" on the <s:url> tag.
>
My context root as set in EAR's application.xml is
<context-root>/</context-root>.
I've downloaded Stripes source code and am trying to debug the issue, if
You take a look at the top of the stacktrace it looks like this:
java.io.FileNotFoundException: /elements/AdminMenu.action
at
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:748)
at
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:400)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at
net.sourceforge.stripes.controller.DynamicMappingFilter.doFilter(DynamicMappingFilter.java:346)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at
org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:873)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:679)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:594)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1013)
at
org.apache.jsp.WEB_002dINF.jsp.renderer.piece_jsp._jspx_meth_c_when_0(piece_jsp.java
from :213)
at
org.apache.jsp.WEB_002dINF.jsp.renderer.piece_jsp._jspx_meth_c_choose_0(piece_jsp.java
from :173)
Why would it ever go to org.apache.catalina.servlets.DefaultServlet?
What I think is happening, based on a comment in DynamicMappingFilter
which says "// Wrap the response in a wrapper that catches errors (but
not exceptions)", is that when DMF tries to service the request and trap
errors, it doesn't trap the FileNotFoundException which is thrown. Is
this a bug?
Best regards,
Grzegorz
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users