Netbeans-Glassfish:保留重新部署会话失败

时间:2017-05-10 03:49:32

标签: java session netbeans glassfish

我的java网络应用程序有会话检查。每次我保存,它都会重新部署。我已经检查过netbeans中的选项"保留重新部署的会话"但当我看着记录。我有这个错误

Info: Initializing Mojarra 2.1.6 (SNAPSHOT 20111206) for context '/webapp'
Info: Running on PrimeFaces 3.4.2
Severe: PWC2768: IOException while loading persisted sessions: java.io.EOFException
java.io.EOFException
    at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2553)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296)
    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946) ...

并进一步记录日志

Warning: WEB0517: Unable to restore sessions for web module [/webapp] from previous deployment
java.io.EOFException
    at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2553)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296)
    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)

所以每次保存java文件时,我都需要重新登录。

我该如何解决这个问题。感谢

0 个答案:

没有答案