简体   繁体   English

Tomcat6抛出java.io.EOFException

[英]Tomcat6 throws java.io.EOFException

I have a Symfony application running on a vagrant VM with CentOS 6 and hosted on Apache Tomcat 6. When I try to access the application, I get a Secure Connection Failed error. 我有一个Symfony应用程序在带有CentOS 6的无用虚拟机上运行,​​并托管在Apache Tomcat 6上。当我尝试访问该应用程序时,出现“ Secure Connection Failed错误。 The tomcat logs show this: 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

This started happening seemingly out of nowhere, with no apparent triggers. 这似乎无处不在,没有明显的诱因。 Following various posts on SO, I deleted the following directories: 在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

where 'cas' is the name of the application. 其中“ cas”是应用程序的名称。 I restarted the tomcat6 service using sudo service tomcat6 restart and the command seems to run successfully. 我使用sudo service tomcat6 restart重新启动了tomcat6服务,该命令似乎已成功运行。 But when I run 'sudo service tomcat6 status', I get PID file exists, but process is not running [FAILED] 但是当我运行“ sudo服务tomcat6状态”时,我得到了PID file exists, but process is not running [FAILED]

Any suggestions? 有什么建议么?

I figured it out by running yum update . 我通过运行yum update知道了。 It showed that there are duplicated packages. 它表明有重复的程序包。 Following this post, I deleted the duplicated packages and ran yum distro-sync . 这篇文章之后,我删除了重复的软件包并运行yum distro-sync Then, tomcat6 was able to start successfully. 然后,tomcat6能够成功启动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM