• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error reading tld listeners java.io.EOFException

 
Mark Fraser
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm running Tomcat 5.5 with several virtual hosts. I am now mysteriously getting startup errors on four of the domains. The error, as reported by log4j, is as follows:
ERROR Thread-1 org.apache.catalina.core.StandardContext - Error reading tld listeners java.io.EOFException
java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2228)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2694)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:761)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:277)
at org.apache.catalina.startup.TldConfig.processCache(TldConfig.java:388)
at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:289)
at org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4307)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4144)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

I have verified the tld files for JSTL. I have even tested with an empty web.xml file and removed all TLD and jar files (as simple as it gets), yet the error persists. The affected domains still function but I want to eliminate the errors. Can anyone suggest what to do next?
 
Tim Holloway
Saloon Keeper
Posts: 18300
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First thing I'd do is undeploy all the WARs - including erasing the exploded WARS in TOMCAT_HOME/webapps and the work files in TOMCAT_HOME/work. See if Tomcat can start clean with no apps. If so, rebuild the WARS from scratch and redeploy.

Second thing I'd do is install a whole new copy of Tomcat. A version 6 Tomcat, preferably. Tomcat 5 is about done.

Something sounds seriously scrambled in the innards of the system. You might also want to check the server hardware.
 
Mark Fraser
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the suggestions. I fixed the problem by deleting some tldCache.ser files under the work folder.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic