发新话题
打印

急啊!项目在服务器上部署之后启动报错!

急啊!项目在服务器上部署之后启动报错!

严重: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: jatools.dom.ReportDataModel
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: jatools.dom.ReportDataModel
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at java.util.HashMap.readObject(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
        at java.io.ObjectInputStream.readSerialData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1485)
        at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:987)
        at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:394)
        at org.apache.catalina.session.StandardManager.load(StandardManager.java:321)
        at org.apache.catalina.session.StandardManager.start(StandardManager.java:648)
        at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:446)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)

TOP

同样的项目 在另一台PC机上正常.部署到服务器上就出错了.

TOP

你的tomcat启动了,在tomcat退出时保存session里的对象,在tomcat启动时加载前session对象的选项。

关掉它,即可,方法参照:
http://accpxudajian.iteye.com/blog/978285

TOP

发新话题