DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40135>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40135

           Summary: error-page and exception-type is not working properly
           Product: Tomcat 5
           Version: 5.5.17
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


1. Create a new web app.

2. Register a error-page in a 2.4 web.xml:
        <error-page>
                <exception-type>java.sql.SQLException</exception-type>
                <location>/error.jsp</location>
        </error-page>

3. Create error.jsp:
<%@ page isErrorPage="true" %>
<html>
error
</html>

4. Create a page that generates an error:
<%
java.sql.DriverManager.getConnection("aaaa");
%>

5. Start the server

6. You get the default error page instead of error.jsp

Misc: it seems like tomcat is not unwrapping ServletException's coming from the
jsp (and maybe servlets) as it supposed to do.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to