If the following error is reported during Tomcat startup:
[Error, managerbase, main] ioexception while loading persisted sessions: Java. Io. eofexception
Java. Io. eofexception
At java. Io. objectinputstream $ peekinputstream. readfully (objectinputstream. Java: 2155)
At java. Io. objectinputstream $ blockdatainputstream. readshort (objectinputstream. Java: 2621)
At java. Io. objectinputstream. readstreamheader (objectinputstream. Java: 734)
At java. Io. objectinputstream. <init> (objectinputstream. Java: 251)
At org. Apache. Catalina. util. customobjectinputstream. <init> (customobjectinputstream. Java: 56)
At org. Apache. Catalina. session. standardmanager. doload (standardmanager. Java: 384)
At org. Apache. Catalina. session. standardmanager. Load (standardmanager. Java: 343)
At org. Apache. Catalina. session. standardmanager. Start (standardmanager. Java: 657)
At org. Apache. Catalina. Core. containerbase. setmanager (containerbase. Java: 499)
At org. Apache. Catalina. startup. contextconfig. managerconfig (contextconfig. Java: 317)
At org. Apache. Catalina. startup. contextconfig. Start (contextconfig. Java: 638)
At org. Apache. Catalina. startup. contextconfig. lifecycleevent (contextconfig. Java: 216)
At org. Apache. Catalina. util. lifecyclesupport. firelifecycleevent (lifecyclesupport. Java: 119)
At org. Apache. Catalina. Core. standardcontext. Start (standardcontext. Java: 4270)
At org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1083)
At org. Apache. Catalina. Core. standardhost. Start (standardhost. Java: 789)
At org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1083)
At org. Apache. Catalina. Core. standardengine. Start (standardengine. Java: 478)
At org. Apache. Catalina. Core. standardservice. Start (standardservice. Java: 480)
At org. Apache. Catalina. Core. standardserver. Start (standardserver. Java: 2313)
At org. Apache. Catalina. startup. Catalina. Start (Catalina. Java: 556)
At sun. Reflect. nativemethodaccessorimpl. invoke0 (native method)
At sun. Reflect. nativemethodaccessorimpl. Invoke (nativemethodaccessorimpl. Java: 39)
At sun. Reflect. delegatingmethodaccessorimpl. Invoke (delegatingmethodaccessorimpl. Java: 25)
At java. Lang. Reflect. method. Invoke (method. Java: 324)
At org. Apache. Catalina. startup. Bootstrap. Start (Bootstrap. Java: 287)
At org. Apache. Catalina. startup. Bootstrap. Main (Bootstrap. Java: 425)
You only need to delete sessions. Ser in the corresponding project under Tomcat \ work \ Catalina \ localhost \, and then restart it.