wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "[JSF2] Warning message during redeploy" Watch "[JSF2] Warning message during redeploy" New topic
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: 15951
    
  19

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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [JSF2] Warning message during redeploy
 
Similar Threads
Logging problem log4j:ERROR
SEVERE: javax.faces.FacesException: java.lang.ClassCastException:
Error in serialization java.io.InvalidClassException:
maven -- java.lang.OutOfMemoryError: Java heap space
Outofmemory Error in ObjectInputStream