---
title: "Tomact启动问题"
author: "kidd"
date: "2009-02-13T11:34:42Z"
tags: []
slug: "tomact"
draft: false
lastmod: "2009-02-20T17:06:01Z"
id: 328048
url: "https://kidd.iteye.com/blog/328048"
---

问题：
**The listener "org.springframework.web.context.ContextLoaderListener" is already configured for this context. The duplicate definition has been ignored.信息: The listener "org.springframework.web.context.ContextLoaderListener" is already configured for this context. The duplicate definition has been ignored.
2009-2-9 17:12:31 org.apache.catalina.session.StandardManager doLoad
严重: IOException while loading persisted sessions: java.io.EOFException
java.io.EOFException**

<span style="color:red">一般抛出EOFException是指流读取越界了,也就是数据流已经读完了继续读,
或者流没有准备好就读数据</span>

答案：
是因为保存在硬盘上的session数据读取失败，问题似乎不大，但是如果不处理一下，每次启动都会出现这个问题，处理方法如下： 

将work(例如：tomcat5.5.20\work\Catalina\localhost\_下面的文件清空，主要是*.ser文件，或者只是删除掉session.ser亦可。 

(以上内容转载 )