| Author |
[JSF2] Warning message during redeploy
|
Bupjae Lee
Ranch Hand
Joined: May 14, 2007
Posts: 107
|
|
I got WEB0517 during redeploy my web applcation
Description of WEB0517 follows here:
WEB0517 Unable to restore sessions for web module [{0}] from previous deployment
Cause:
An HTTP session that was supposed to survive the redeployment of the web module failed to be restored (deserialized). This can happen if an application class that was used as a session attribute has changed incompatibly
Solution:
Make sure that any application classes that are being used as session attributes change only in a compatible way during redeployments
However, this warning invokes even if I didn't modified any of the session-scoped bean
Moreover, the exception should be 'InvalidClassException', not 'NullPointerException' if I changed the session-scoped bean incompatible way.
I use Glassfish v3 and bundled JSF library.
Server log follows here:
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14456
|
|
Your exception occurred in JBoss Weld, so you'd probably be better off asking in a JBoss forum.
Platform-specific considerations aside, one problem that often occurs when restoring sessions comes from when a Session object incorporates a non-serialiable object. For example, if I was foolish enough to attempt to store a JDBC Connection in a backing bean.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
Bupjae Lee
Ranch Hand
Joined: May 14, 2007
Posts: 107
|
|
Thanks for reply.
First, I'm not using JBoss; I'm using Glassfish v3, and it seems that there are no Glassfish forum
Since I'm using JSF, I checked all of @SessionScoped bean classes' fields, and it doesn't seem I have non-serializable object
|
 |
 |
|
|
subject: [JSF2] Warning message during redeploy
|
|
|