Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSF: Mojarra 2.1 to 2.2 migration causing ViewExpiredException

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

like image 388
FkJ Avatar asked Nov 15 '25 16:11

FkJ


1 Answers

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

Solved it by changing the state saving method to server.

like image 142
FkJ Avatar answered Nov 18 '25 20:11

FkJ