On Thu, 17 May 2001, Bruno Crapart wrote:
> The same for me ! I am confident with Jakarta
> But i encounter one problem below :
>
> A Servlet Exception Has Occurred
>
> org.apache.jasper.JasperException: Unable to compile class for
> JSPC:\tomcat\bin\..\work\localhost\egc\carriersite\code_jsp.java:62:
> Incompatible type for method. Explicit cast needed to convert
> java.lang.Throwable to java.lang.Exception.
>
> if (pageContext != null) pageContext.handlePageException(t);
I would guess that it tries to compile against an old Servlet implementation,
when you run Tomcat4 you also have to install the Servlet2.3 and JSP1.2 classes.
http://jakarta.apache.org/builds/jakarta-servletapi-4/nightly/
My guess is that handlePageException(Throwable t) is a 2.3 feature and
that the method in 2.2 looked like: handlePageException(Exception e) but
that's easy to look up if you got the spec, Throwable is valid in the 2.3 spec.
..bip