Hello, All!

[This is just a submission to the JBoss Online BrainBase.]

After pulling my hair out the last two days, I fixed my problem.

With my ant/xdoclet build process that put my EJB's in one jar, my
servlets/jsp's in another and EAR'ed the whole thing (as opposed to some
other way I didn't try), I would get the following error when I would call
a .jsp directly:

> Date: Mon, 18 Nov 2002 17:12:15 GMT
> Server: Jetty/RELEASE_MAJOR_MINOR (Linux 2.4.7-10 i386)
> Servlet-Engine: Jetty/RELEASE_MAJOR_MINOR (Servlet 2.3; JSP 1.2; java 1.3.1_01)
> Content-Type: text/html
> Content-Length: 1759
>
> HTTP ERROR: 500 Unable to compile class for JSP 
>/tmp/Jetty__8080___Bug1/bug1$jsp.java:90:
>    Incompatible type for method. Explicit cast needed to convert java.lang.Throwable 
>to java.lang.Exception.
>    if (pageContext != null) pageContext.handlePageException(t);
>                                                             ^ 1 error
> RequestURI=/Bug1/bug1.jsp

If I called a .jsp from a servlet via:

   "request.getRequestDispatcher("/bug1.jsp").forward(request, response)"

I would get a blank screen with no errors in the logs. I didn't know if they
were related, but fixing the compilation error has also fixed the forwarding.

The problem? I had included a library in the servlet/jsp .war file that I
probably shouldn't have (but has been in my build process like this for
the last year or two with Tomcat). Namely, removing jsdk_2.2.jar (a.k.a.
servlet.jar) from my .war fixed the problem. I had been going down a
xerces/crimson-version-downgrade path for a bit, but then I found this
message on the jetty list:

   http://groups.yahoo.com/group/jetty-discuss/message/4270


Anyway, I hope this helps someone down the road.

Thanks!

Bill




-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to