This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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

Win a copy of Head First Android this week in the Android forum!
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: 16897

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.

Customer surveys are for companies who didn't pay proper attention to begin with.
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.
It is sorta covered in the JavaRanch Style Guide.
subject: Error reading tld listeners
jQuery in Action, 3rd edition