Error when eclipse starts Tomcat: severe: Exception loading sessions from persistent storage

 My project is Spring + hibernate + structs 1.0, repeatedly encountered the following exception recent start tomcat:

 

严重: IOException while loading persisted sessions: java.io.EOFException

严重: Exception loading sessions from persistent storage

And other information.

 

  After I check some online information, roughly what reason, and know how to solve this problem.

1. Why is there such an exception?

      Mostly because of a non-normal way due to shut down the tomcat service. Resulting in no normal end of session is called a Session.

Then think about it, I was in such a situation, it seems really shut down the service due to non-normal.

 

 

2, solution.

      2.1, most mentioned the Internet to the tomcat directory under local directory, find a Session.ser file deleted it.   

               However, my project is rather special, after deployment, in the following directory tomcat was not my project, it is impossible to find this Session.ser file. Finally, I simply removed the entire local directory, the result was not.

              However, perhaps the above method is suitable for Session.ser file can be found in the tomcat.

 

    2.2, and finally through my disk search, finally found the location of the file.

                If you can not find the file in the Session.ser tomcat directory, then go looking for the next eclipse project directory.

Session.ser find the file under the following path.

E:\btwork\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\btmis\org

 

   Note: The above is my workspace btwork working directory.

          It estimated that very few people noticed .metadata directory under the eclipse.

 

          In this catalog, I found Session.ser file, delete it off, and re-deploy the project, restart Tomcat, problem solved, everything is normal.

DETAILED Reference: https: //blog.csdn.net/lcathm/article/details/41683685

Guess you like

Origin www.cnblogs.com/zxy-come-on/p/10947635.html