I’ve been bugged by this problem for some time now, so I decided to investigate a bit. The error shows up when tomcat is trying to reload the web application.

The full stacktrace is shown below:

SEVERE: Error reading tld listeners java.lang.NullPointerException
java.lang.NullPointerException

at org.apache.log4j.Category.isEnabledFor(Category.java:746)
at org.apache.commons.logging.impl.Log4JLogger.isTraceEnabled(Log4JLogger.java:327)
at org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:582)
at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:283)
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.StandardContext.reload(StandardContext.java:3025)
at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:432)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1278)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
at java.lang.Thread.run(Thread.java:595)

The solution is quite simple: replace commons-logging.jar from your 1.1 version to a previous version (1.0.4). That’s it. The problem has been discussed here.

technorati tags:, , , ,

2 responses to “What to do: Error reading tld listeners java.lang.NullPointerException

  1. hi,

    i did all of the things u mentioned to resolve this issue, but all in vain.

    Can u show mw other way to resolve this issue.

    Thanks,
    Praneet

  2. Please check whether your listeners is started properly or not.
    Use ps -ef | grep lsnrctl
    if it is not started, then follow below procedure to start the listener

    Procedure
    1. Go to $ORACLE_HOME/bin> ./lsnrctl
    2. $ORACLE_HOME/bin> start

    Hope this helps.

Leave a Comment:

Your email address will not be published. Required fields are marked *