Tomcat6抛出java.io.EOFException

时间:2017-03-01 22:17:41

标签: java symfony tomcat6

我有一个Symfony应用程序在带有CentOS 6的流浪虚拟机上运行并托管在Apache Tomcat 6上。当我尝试访问该应用程序时,出现Secure Connection Failed错误。 tomcat日志显示:

Exception in thread "main" java.lang.Error: java.io.EOFException
    at sun.util.calendar.ZoneInfoFile$1.run(ZoneInfoFile.java:261)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.util.calendar.ZoneInfoFile.<clinit>(ZoneInfoFile.java:251)
    (....more lines)
Caused by: java.io.EOFException
    at java.io.DataInputStream.readByte(DataInputStream.java:267)
    at sun.util.calendar.ZoneInfoFile.load(ZoneInfoFile.java:294)
    at sun.util.calendar.ZoneInfoFile.access$000(ZoneInfoFile.java:61)
    at sun.util.calendar.ZoneInfoFile$1.run(ZoneInfoFile.java:258)
    ... 37 more

这开始发生似乎无处不在,没有明显的触发因素。关于SO的各种帖子,我删除了以下目录:

${CATALINA_HOME}/work/Catalina/localhost/cas
${CATALINA_HOME}/work/Catalina
${CATALINA_HOME}/temp
${CATALINA_HOME}/webapps/cas
/var/cache/tomcat6/temp
/var/cache/tomcat6/work

其中&#39; cas&#39;是应用程序的名称。我使用sudo service tomcat6 restart重新启动了tomcat6服务,命令似乎成功运行。但是,当我运行“sudo service tomcat6 status&#39;”时,我得到了 PID file exists, but process is not running [FAILED]

有什么建议吗?

1 个答案:

答案 0 :(得分:0)

我通过运行yum update来解决这个问题。它表明存在重复的包。发布this后,我删除了重复的包并运行了yum distro-sync。然后,tomcat6能够成功启动。