GAE + JSF : View /hello.xhtml could not be restored


Deployed on GAE production environment, when navigate from one page/view to another page/view, GAE shows error message “View xxx could not be restored“?

  1. JSF 2.1.7
  2. Google App Engine SDK 1.6.3
view can not be restored

P.S No problem at local GAE development.


By default, JSF 2 is using server for session management, and it’s not supported in GAE (tested with 1.6.3). To solve it, update web.xml file, define “javax.faces.STATE_SAVING_METHOD” , put value as “client“.

File : web.xml



  1. Developing Web Applications with JavaServer Faces
  2. Using JSF 2 with Google App Engine
author image


Founder of, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities. Read all published posts by


newest oldest most voted
Jorge Merino
Jorge Merino

Hi mkyong,

Thanks for the information but, after that change, we receive the error:

: ERROR: MAC did not verify!

Is there any solution for that?