JSF: Mojarra 2.1 to 2.2 migration causing ViewExpiredException

两盒软妹~` 提交于 2019-12-01 06:12:29

问题


I'm porting my applications from PrimeFaces 3.5.18 + Mojarra 2.1.26 to PrimeFaces 4.0.2 + Mojarra 2.2.4.

When I restart the server I get a ViewExpiredException.

Server log contains this: ERROR: MAC did not verify!

I know that by default MyFaces generates a random secret to encode the view state, so each time the server restart, a new random secret is generated. Is Mojarra 2.2 behaving the same way?

In that case, what context parameters do I need to set? Googling for Mojarra 2.2 context parameters the best I could find was this, but there are no SECRET or MAC_SECRETS parameters like in MyFaces

Thanks in advance, Phillip


回答1:


Problem was this: https://java.net/jira/browse/JAVASERVERFACES-2553

Solved it by changing the state saving method to server.



来源:https://stackoverflow.com/questions/19706327/jsf-mojarra-2-1-to-2-2-migration-causing-viewexpiredexception

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!