JSF-applications can throw ViewExpiredException
s when a session is expired. This event will be quite common when having guests on your system. Therefor the application will handle this event without any trouble for the guest, as follows:
<error-page>
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
<location>/expired</location>
</error-page>
When a guest tries to send a request on an expired session, he will be redirected to /expired
. Since I don't consider this Exception
as a problem worth mentioning, I would like to prevent writing the stacktrace to the log of my applicationserver.
How can I accomplish this?