https://issues.apache.org/bugzilla/show_bug.cgi?id=51106
Summary: Error page handling serves most general exeptions
first
Product: Tomcat 7
Version: 7.0.11
Platform: PC
Status: NEW
Severity: major
Priority: P2
Component: Catalina
AssignedTo: [email protected]
ReportedBy: [email protected]
Apache Tomcat v7.0.11-x64
Catalina
PC/Windows 7 Enterprise x64
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
How to reproduce the problem?
<error-page>
<exception-type>my.MyException</exception-type>
<location>/exceptions/my_exception.jsp</location>
</error-page>
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/exceptions/all.jsp</location>
</error-page>
and then throw new ServletException(new MyException("msg"))
the code in StandardHostValve first tries to find the error page for the
wrapping exception, then for the cause - therefore MyException is never handled
in the right place.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]