Details
Description
Using the standard error-page declaration in web.xml only works when a java.lang.Exception is used as exception type, like
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/error.jspx</location>
</error-page>
Using a specific exception, like i.e. a NullPointerException the redirect to an error page won't work anymore:
<error-page>
<exception-type>java.lang.NullPointerException</exception-type>
<location>/error.jspx</location>
</error-page>
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/error.jspx</location>
</error-page>
Using a specific exception, like i.e. a NullPointerException the redirect to an error page won't work anymore:
<error-page>
<exception-type>java.lang.NullPointerException</exception-type>
<location>/error.jspx</location>
</error-page>
-
Hide
- Test_ErrorPage.zip
- 151 kB
- Michael Thiem
-
- Test_ErrorPage/.classpath 0.5 kB
- Test_ErrorPage/.mymetadata 0.3 kB
- Test_ErrorPage/.project 1 kB
- Test_ErrorPage/src/test/Bean.java 0.2 kB
- Test_ErrorPage/WebRoot/exception.jspx 0.9 kB
- Test_ErrorPage/WebRoot/index.jsp 0.0 kB
- Test_ErrorPage/WebRoot/main.jspx 0.9 kB
- Test_ErrorPage/WebRoot/.../MANIFEST.MF 0.0 kB
- Test_ErrorPage/WebRoot/nullpointer.html 0.3 kB
- Test_ErrorPage/WebRoot/nullpointer.jspx 0.8 kB
- Test_ErrorPage/WebRoot/.../.faces-config.mex 0.1 kB
- Test_ErrorPage/WebRoot/.../test/Bean.class 0.6 kB
- Test_ErrorPage/WebRoot/.../faces-config.xml 0.4 kB
- Test_ErrorPage/WebRoot/.../html_basic.tld 244 kB
- Test_ErrorPage/WebRoot/.../jsf_core.tld 25 kB
- Test_ErrorPage/WebRoot/WEB-INF/web.xml 3 kB
- Test_ErrorPage/WebRoot/.../add.gif 0.1 kB
- Test_ErrorPage/WebRoot/.../arrow-ff-dis.gif 0.9 kB
- Test_ErrorPage/WebRoot/.../arrow-ff.gif 0.2 kB
- Test_ErrorPage/.../arrow-first-dis.gif 0.1 kB
- Test_ErrorPage/WebRoot/.../arrow-first.gif 0.2 kB
- Test_ErrorPage/WebRoot/.../arrow-fr.gif 0.3 kB
- Test_ErrorPage/.../arrow-last-dis.gif 0.9 kB
- Test_ErrorPage/WebRoot/.../arrow-last.gif 0.3 kB
- Test_ErrorPage/.../arrow-next-dis.gif 0.9 kB
- Test_ErrorPage/WebRoot/.../arrow-next.gif 0.2 kB
- Test_ErrorPage/.../arrow-previous-dis.gif 0.9 kB
- Test_ErrorPage/.../arrow-previous.gif 0.2 kB
- Test_ErrorPage/WebRoot/.../arrow-rw-dis.gif 0.1 kB
- Test_ErrorPage/.../cal_arrow_left.gif 0.2 kB
Issue Links
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Probably ICE-2990 is dealing with the same issue
Show
Michael Thiem
added a comment - Probably ICE-2990 is dealing with the same issue
This is an old issue.
Show
Mircea Toma
added a comment - This is an old issue.
Extract and re-throw root exception to be captured by the servlet container.
Show
Mircea Toma
added a comment - Extract and re-throw root exception to be captured by the servlet container.
Tested successfully on ICEfaces 1.7 branch revision #17222.
Show
Mandeep Hayher
added a comment - Tested successfully on ICEfaces 1.7 branch revision #17222.
simple demo application