Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 6.1.4
-
Component/s: None
-
Labels:None
-
Environment:win xp - eclipse - maven mojo
-
Number of attachments :
Description
I've a general error-page which handles all types of Exceptions (e.g. JasperException -> shows een the line with the error)
- I declare an error-page in web.xml like this
<error-page> <exception-type>org.apache.jasper.JasperException</exception-type> <location>/error-page.jsp</location> </error-page>
This page is never called on an exception org.apache.jasper.JasperException: /WEB-INF/classes/de/dwpbank/wpdirect/vienna/ug0001samples/uc0004layout/pages/layout1.jsp(13,6) No such tag ro in the tag library imported with prefix v
Reason:
- The Throwable above will be set to Dispatcher.ForwardAttributes by the key javax.servlet.error.exception but this method suppresses all keys starting on "javax.servlet", so the ErrorPageErrorHandler can never forward to it !
Why does the Dispatcher.ForwardAttributes.setAttribute(...) does that ?
Can you try to reproduce this with the latest from svn head?
I have modfied the test webapp to try to reproduce, but I cannot
If you hit http://jetty.mortbay.org:8080/test/dispatch/forward/dump/ex1
you will see it working correctly on our public server.
The ForwardAttributes class does not suppress all javax.servlet attributes, as it
calls _attr.setAttribute if need be. Besides, this is not the path that exception
attributes are set.
thanks