tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40135] New: - error-page and exception-type is not working properly
Date Fri, 28 Jul 2006 13:25:02 GMT
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: guilherme.silveira@caelum.com.br


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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message