java - Preventing ViewExpiredException with JSF 2 after redeploy -


I have a problem, where every time I reuse my app, any current session is broken and the request is a ViewExpiredException . There is no advice from related questions or external mailing list / forum posts to fix this problem. I can completely unify the same war file and its behavior is the same.

I am using Apache MyFaves 2.2.0, Tomcat 7.0.56 and PrimeFace 5.0.

Message exceptions can not be found for a saved view status for the visual identifier: The page that will be requested will be the primary form for navigation ' MenuBurner Which is used for & lt; Form & gt; as these messages are with those navigation options and other AJAXs that use POST.

I have tried:

  1. Setting clear org.apache.myfaces.SECRET and org.apache.myfaces.MAC_SECRET Value, as seen.
  2. The value javax.faces.STATE_SAVING_METHOD parameter for both clients and servers .
  3. To ensure all the beans and their infected fields are sorted. There are no serialization errors in the log.
  4. Using a filter to add a no-cache header, e.g. As has been suggested.
  5. The persistence of the session is not disabled, it is my context.xml commented

Try it with Do:

  & lt; Manager ClassName = "org.apache.catalina.session.PersistentManager" saveOnRestart = "true" />  

Comments