一直用tomcat一段时间都正常无事,最近一次启动tomcat就发生以下异常:
严重: IOException while loading persisted sessions: java.io.EOFException
严重: Exception loading sessions from persistent storage
原因是tomcat对硬盘的session读取失败,彻底解决办法一下:将work下面的文件清空,主要是*.ser文件,或者只是删除掉session.ser即可以解决。
-------------------------------------------------------------------------------------------------
PS:本博客文章,如果没有注明是有“转”字样,属于本人原创。如果需要转载,务必注明作者和文章的详细出处地址,否则不允许转载,多谢合作!
posted on 2007-10-12 16:52
apple0668 阅读(85514)
评论(62) 编辑 收藏 所属分类:
tomcat
评论:
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2007-10-12 17:01 |
Tomcat 默认好像并不把Session序列化到硬盘,你做过改动?
回复 更多评论
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2007-10-12 18:07 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2007-10-12 18:15 |
我的tomcat是6.0的,我是通过把E:\Tomcat 6.0\work里面的session.ser文件删除解决的,也是第一次遇到这个问题,最近没有改动过,只是发布项目到tomcat中。
回复 更多评论
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2007-10-12 23:59 |
在非正常退出时,TOMCAT会记录一些数据,下次开启时会去读这些数据,以便让上次关闭时的session继续有效.(猜想)
回复 更多评论
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记[未登录]
2007-10-13 00:15 |
@Alexander.Yu,你的推断都有可能,有时间试试非正常退出,看看是不是这个原因,第一次遇到找到这样的解决方法,但不知道是什么原因。
回复 更多评论
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2007-10-13 15:25 |
在重新启动Tomcat的webapp的时候,禁止把session写入文件。
修改conf/web.xml
取消注释:
<!---->
<Manager pathname="" />
回复 更多评论
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2009-02-16 01:24 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2009-06-07 20:47 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2011-05-05 10:21 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2011-06-03 15:51 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记[未登录]
2011-06-16 18:54 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2011-07-13 14:32 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2011-07-26 16:56 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记[未登录]
2011-08-16 17:40 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2011-11-11 14:00 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2011-12-20 16:45 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2012-02-29 11:14 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2012-05-02 14:46 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2012-06-08 14:10 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2012-06-11 08:31 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2012-06-14 10:02 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2012-08-11 09:41 |
@惨
在\work\Catalina\localhost\_\里面
回复 更多评论
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记[未登录]
2012-08-11 17:33 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2012-08-17 14:30 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2012-08-30 10:13 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记[未登录]
2012-09-17 17:12 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记[未登录]
2012-09-26 10:06 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2012-11-02 16:52 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2012-11-02 16:53 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2012-11-12 11:13 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记[未登录]
2012-11-23 11:33 |
好啊,之前我一起删除的,这次没删除work,就这样了,学习了
回复 更多评论
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记[未登录]
2013-01-15 14:01 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2013-03-30 10:18 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2013-04-17 09:56 |
为什么我没有这个<!---->
<Manager pathname="" />
回复 更多评论
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2013-05-28 15:33 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2013-05-29 15:26 |
给力,我把这路径下的内容全给删除咯,就对了
D:\tomcat-6.0.14\work
不过我的<Manager pathname="" />在context.xml文件里面
我的Tomcat版本是tomcat-6.0.14
回复 更多评论
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2013-05-29 15:27 |
@haitian
我的在在context.xml文件里面
也许你的也是~~~
回复 更多评论
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2013-05-29 15:28 |
@sunlea
那下面有哦,我还不知道呢,没看过。
回复 更多评论
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2013-06-16 18:06 |
高手啊!我的work/manager/session.ser果然存在,删了就好了……
回复 更多评论
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2013-06-24 14:47 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2013-07-09 21:43 |
我的怎么没能解决啊.用BAT启动过越过去,
但注册服务后就会自动停止啊.
回复 更多评论
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2013-07-25 16:22 |
我的也没有解决啊,用的是myeclipse自带的tomcat
回复 更多评论
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记[未登录]
2013-07-26 16:04 |
感谢上面的楼主,至今还有效....
我用的是myeclipse自带的Tomcat,路经应在这:.metadata\.me_tcat\work\Catalina\localhost
回复 更多评论
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记[未登录]
2013-08-02 11:54 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记[未登录]
2013-08-10 18:36 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2013-09-24 08:27 |
# Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2013-11-03 00:33 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2014-01-03 09:10 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2014-01-13 16:41 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2014-01-13 16:49 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2014-02-28 10:11 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记[未登录]
2014-04-03 16:54 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2014-04-12 10:04 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2014-04-17 10:35 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2014-04-22 15:22 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2015-02-06 13:59 |
java.io.EOFException ,GZIPInputStream这种情况下,work,目录中没有session.erm.要删除整个work目录。
回复 更多评论
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2015-02-11 17:29 |
work文件夹是空的,重新换了一个Tomcat就可以了。
回复 更多评论
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2015-05-07 10:26 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2015-05-15 12:06 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2015-07-28 10:17 |
@123
已解决,谢谢提示myeclipse相关的有用信息~~
回复 更多评论
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记[未登录]
2015-09-22 14:51 |
# re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2016-05-24 22:23 |
非常感谢楼主分享,解决问题, Tomcat 7.0.59
回复 更多评论