In Seam when a user tries to logout and login with another account the first attempt fails with a javax.faces.application.ViewExpiredException
Issue
- when a user tries to logout and login with another account the first attempt fails with a javax.faces.application.ViewExpiredException
- at the second attempt it works. it also works if the user click on a page before trying to relogin.
ERROR [org.jboss.seam.web.ExceptionFilter] exception root cause javax.faces.application.ViewExpiredException: viewId:/login.seam - View /login.seam could not be restored.
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:186)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:104)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
Environment
- JBoss Enterprise Application Platform (EAP) 4.3
- Seam 2.0.2-Feature Pack
- The login/logout form is in the template
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.