We migrated to WebSphere 7.0 from 6.1 recently and also upgraded from JSF1.1 to JSF1.2. Everytime the session expires and anything is submitted through the browser i now get an exception:
Caused by: javax.faces.application.ViewExpiredException: viewId:/Foo/Bar.jsp - View /Foo/Bar.jsp could not be restored.
How can i prevent that error?
- The results of a request are rendered on the same page as the input fields.
- I am using a session scoped backing bean for the page.
Edit: It does look like a WAS 7.0/JSF 1.2 migration issue see https://www.ibm.com/developerworks/forums/thread.jspa?threadID=332460&tstart=30 (no answer provided)
BalusC explains here why it happens javax.faces.application.ViewExpiredException: View could not be restored . But why did it not happen before? Several apps were working fine before the migration.
Have you checked this? Handling 'session expired' in JSF web application, running in JBoss AS 5
At least that is how I'm handling session expiration in my JSF application.
Hope it helps Steven