Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

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!

javax.faces.application.ViewExpiredException not caught

843844Nov 24 2007 — edited Apr 2 2008
Hi,

I'm using tomcat and JSF 1.2

I want to catch the javax.faces.application.ViewExpiredException when my session expires, but it doesn't work.

I have the following in my web.xml

<error-page>
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
<location>/?e=sessionExpired</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/xhtml/global/error/error.jsp</location>
</error-page>
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/xhtml/global/error/error.jsp</location>
</error-page>

But I still see the tomcat error page, all my other exceptions are caught correctly, only the javax.faces.application.ViewExpiredException doesn't work.

Any suggestions?

Thanks,
Pieter
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 30 2008
Added on Nov 24 2007
11 comments
1,362 views