You could catch this exception to find out more about it; however, I
think you just  need to use the normal Servlet RequestDispatcher
instead of Apache's specific implementation. e.g.

request.getRequestDispatcher().include(request, response);

Note that the JSP/Servlet spec doesn't require Apache. Meaning you
should stick to the spec's classes and interfaces if you expect your
code to work between possibly different containers.

Hope it helps,

Jayson

On Thu, Sep 17, 2009 at 10:09 PM, James H <[email protected]> wrote:
>
> This cast exception is NOT obvious.  Here's the production stack
> snippet:
>
> /homeIndex.jsp
> java.lang.ClassCastException: java.lang.ClassCastException cannot be
> cast to javax.servlet.ServletException
>        at org.apache.jasper.runtime.PageContextImpl.handlePageException
> (PageContextImpl.java:754)
>        at org.apache.jsp.homeIndex_jsp._jspService(homeIndex_jsp.java:67)
>        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 487)
>        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> ...
>
> And here's the homeIndex_jsp.java (from my local runtime test
> environment).  Line 67 is the last one listed here:
>
> ...
>      out.write("\t\t\t\t<tr>\n");
>      out.write("\t\t\t\t\t<td>\n");
>      org.apache.jasper.runtime.JspRuntimeLibrary.include(request,
> response, "homeLeft.jsp", out, true);
>      out.write("\n");
> ...
>
> Any ideas on how a class cast exception could occur above?  Naturally,
> this runs fine in my test environment but NOT in production!
>
> Thanks, J
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to