File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes [JSF2] Warning message during redeploy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "[JSF2] Warning message during redeploy" Watch "[JSF2] Warning message during redeploy" New topic

[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

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

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: 17421

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.

An IDE is no substitute for an Intelligent Developer.
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

wood burning stoves
subject: [JSF2] Warning message during redeploy
It's not a secret anymore!