This is a compilation failure not a runtime failure. How will it know to use the error page defined inside the jsp page if it never compiled.
>From: Raphael Di Cicco <[EMAIL PROTECTED]> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> >To: "Tomcat Users List" <[EMAIL PROTECTED]> >Subject: My Exceptions not caught anymore, why ? >Date: Tue, 16 Apr 2002 10:13:47 +0200 > >I don't know if I have done something wrong or not... >Let's see an example : > ><!--connect.jsp--> ><%@ include file="head-jsp-dec.jsp" %> ><%@ include file="head-jsp.jsp" %> ><%@ include file="head.jsp" %> ><%@ page errorPage="error.jsp" %> ><%@ page import="java.util.*, Myrdv.*" %> ><% >cStatic.toInt("hy"); >%> > >cStatic.toInt throws a NumberFormatException. However the JSP never goes to >error.jsp (I have tracked it). >Instead I have this message : > >org.apache.jasper.JasperException: Unable to compile class for JSP > at org.apache.jasper.servlet.JspServlet.loadJSP(Unknown Source) > at >org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Unknown >Source) > at >org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown >Source) > at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown >Source) > at org.apache.jasper.servlet.JspServlet.service(Unknown Source) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at org.apache.catalina.core.ApplicationDispatcher.invoke(Unknown >Source) > at >org.apache.catalina.core.ApplicationDispatcher.doForward(Unknown >Source) > at org.apache.catalina.core.ApplicationDispatcher.forward(Unknown >Source) > at org.apache.jasper.runtime.PageContextImpl.forward(Unknown >Source) > at >org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown >Source) > at org.apache.jsp.connect$jsp._jspService(connect$jsp.java:430) > >If I go to line 430 in the jsp.class this points to : if (pageContext != >null) >pageContext.handlePageException(t); > >I'm lost because it used to work well, must have done something >wrong...(note >that if I delete the line where the exception occurs the application works >well). > >If anyone got any clue, I would appreciate sharing with me. >Thanks >Raphael > >-- >To unsubscribe: <mailto:[EMAIL PROTECTED]> >For additional commands: <mailto:[EMAIL PROTECTED]> >Troubles with the list: <mailto:[EMAIL PROTECTED]> > ----------------------- Todd Kaplinger mailTo:[EMAIL PROTECTED] _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>