1 Reply Latest reply on Apr 21, 2011 11:30 AM by beanfarmer

    javax.faces.application.ViewExpiredException: Error page is not shown

    pschuett

      Hallo,

      if I have a session timeout I become the following exception stack trace in my log file.

      The showed page does not disappear. I have to refresh the browser and then the login page of my application comes.

       

      2011-04-13 09:52:41,488 SEVERE org.apache.catalina.core.StandardWrapperValve invoke  ---  Servlet.service() for servlet Faces Servlet threw exception

      javax.faces.application.ViewExpiredException: viewId:/web/index.xhtml - Ansicht /web/index.xhtml konnte nicht wiederhergestellt werden.

               at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:200)

               at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

               at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:111)

               .......

       

      In my web.xml I have the entry:

       

          <error-page>

              <exception-type>javax.faces.application.ViewExpiredException</exception-type>

              <location>/web/error/error_expired.xhtml</location>

          </error-page>

       

      but this error page is neved reached.

       

      What do I have to change in my config to catch a session timeout in an own error page?

       

      Thanks for any hints.


      Ciao

        Peter Schütt