You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2007/10/10 22:53:12 UTC
DO NOT REPLY [Bug 43592] New: - Incorrect finding error-page for exceptions encapsuled in ServletException
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=43592>.
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=43592
Summary: Incorrect finding error-page for exceptions encapsuled
in ServletException
Product: Tomcat 5
Version: Unknown
Platform: All
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: sorroche@tre-sc.gov.br
I have the following error-pages configured in web.xml:
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/errors/genericError.jsp</location>
</error-page>
<error-page>
<exception-type>com.myapp.AppException</exception-type>
<location>/errors/appError.jsp</location>
</error-page>
When AppException is raised in application I catch it and throw a
ServletException with AppException as cause.
The error page shown would have to be appError.jsp,
but as ServletException and not AppException is matching with Throwable,
genericError.jsp is shown.
The correct would be find a mapping for ServletException.getRootException first
and then, if not found, find a mapping for ServletException.
--
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
DO NOT REPLY [Bug 43592] - Incorrect finding error-page for exceptions encapsuled in ServletException
Posted by bu...@apache.org.
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=43592>.
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=43592
lgalfaso@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From lgalfaso@gmail.com 2007-10-11 14:39 -------
This is not the standard behavior according to SRV.9.9.2 Error Pages
--
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