Skip to Main Content

Application Development Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

<error-page> in web.xml doesn't work

User592717-OCFeb 21 2012 — edited Feb 23 2012
Hi There,

In my webcenter portal application, I want to redirect all the exceptions to a static error page. I have created a static error page as errorPage.html and then I modified the web.xml as follows.

<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/faces/oracle/webcenter/portalapp/pages/errorPage.html</location>
</error-page>

I created a test.jspx page to throw an null pointer exception. I am able to see the exception, but error page redirection is not working.

Please suggest if any step I missed to configure the error page in web.xml.

Thanks,
Srinivas
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 22 2012
Added on Feb 21 2012
15 comments
3,942 views