错误:
1 2018-4-18 10:55:54 org.apache.catalina.session.StandardManager doLoad 2 严重: IOException while loading persisted sessions: java.io.EOFException 3 java.io.EOFException 4 at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source) 5 at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source) 6 at java.io.ObjectInputStream.readStreamHeader(Unknown Source) 7 at java.io.ObjectInputStream.(Unknown Source) 8 at org.apache.catalina.util.CustomObjectInputStream. (CustomObjectInputStream.java:58) 9 at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:362)10 at org.apache.catalina.session.StandardManager.load(StandardManager.java:321)11 at org.apache.catalina.session.StandardManager.start(StandardManager.java:648)12 at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:446)13 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4631)14 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)15 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)16 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)17 at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)18 at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)19 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)20 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)21 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)22 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)23 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)24 at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)25 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)26 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)27 at org.apache.catalina.core.StandardService.start(StandardService.java:525)28 at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)29 at org.apache.catalina.startup.Catalina.start(Catalina.java:595)30 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)31 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)32 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)33 at java.lang.reflect.Method.invoke(Unknown Source)34 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)35 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)36 2018-4-18 10:55:54 org.apache.catalina.session.StandardManager start37 严重: Exception loading sessions from persistent storage
启动项目时报以下异常
严重: Exception loading sessions from persistent storage
java.io.EOFException
遇到上述异常,删除Tomcat里面的work\Catalina\localhost下的项目文件内容即可解决.
原因是由于项目测试中class文件或者其它文件更新过频繁。
之前经常碰到页面修改后,重新发布的项目页面还是原样,不管删掉tomcat/webapps/发布的项目还是重新部署,都无法显示修改后的效果,
但是其他页面修改后又能显示。真是莫名其妙。
现在才知道是tomcat的问题,同样删除Tomcat里面的work\Catalina\localhost下的项目文件内容即可解决.