File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Error reading tld listeners Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Error reading tld listeners" Watch "Error reading tld listeners" New topic

Error reading tld listeners

Mark Fraser

Joined: Oct 15, 2010
Posts: 11
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
at org.apache.catalina.startup.TldConfig.processCache(
at org.apache.catalina.startup.TldConfig.execute(
at org.apache.catalina.core.StandardContext.processTlds(
at org.apache.catalina.core.StandardContext.start(
at org.apache.catalina.core.ContainerBase.addChildInternal(
at org.apache.catalina.core.ContainerBase.addChild(
at org.apache.catalina.core.StandardHost.addChild(
at org.apache.catalina.startup.HostConfig.deployDirectory(
at org.apache.catalina.startup.HostConfig.deployDirectories(
at org.apache.catalina.startup.HostConfig.deployApps(
at org.apache.catalina.startup.HostConfig.start(
at org.apache.catalina.startup.HostConfig.lifecycleEvent(
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardHost.start(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardEngine.start(
at org.apache.catalina.core.StandardService.start(
at org.apache.catalina.core.StandardServer.start(
at org.apache.catalina.startup.Catalina.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.apache.catalina.startup.Bootstrap.start(
at org.apache.catalina.startup.Bootstrap.main(

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

Joined: Jun 25, 2001
Posts: 17410

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.

An IDE is no substitute for an Intelligent Developer.
Mark Fraser

Joined: Oct 15, 2010
Posts: 11
Thanks for the suggestions. I fixed the problem by deleting some tldCache.ser files under the work folder.
I agree. Here's the link:
subject: Error reading tld listeners
It's not a secret anymore!