javax.faces.application.ViewExpiredException not caught
843844Nov 24 2007 — edited Apr 2 2008Hi,
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