O tomcat 5.5.17 tem um bug. Arriscado falar isso nao eh?
Bom, vamos la:
error.jsp:
<%@ page isErrorPage="true" %>
<html>
error
</html>
web.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<error-page>
<exception-type>java.sql.SQLException</exception-type>
<location>/error.jsp</location>
</error-page>
</web-app>
a.jsp:
<%
java.sql.DriverManager.getConnection("aaaa","zacarias","jamorreu");
%>
O resultado deveria ser a pagina de erro definida. Mas nao eh… lindo. Por favor alguem pode confirmar? (Outras versoes nao tinham o bug)…
Registrei na lista de discussao deles + bug list deles mas nada ate agora…
Abraco
Guilherme