NullPointerException while starting up Tomcat 4.1.10 in debug mode

I've set up my web application in IDEA and configured my Tomcat 4.1.10 installation in the run/debug tab. When I hit the debug button, I get the following stacktrace. Tomcat starts up correctly when started outside of IDEA.

Anyone else seen this?

Todd Breiholz



java.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java:329)
at org.apache.commons.logging.LogFactory.getCachedFactory(LogFactory.java:502)
at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:264)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401)
at org.apache.commons.digester.Digester.]]>(Digester.java:345)
at org.apache.catalina.startup.Catalina.createStartDigester(Catalina.java:280)
at org.apache.catalina.startup.Catalina.start(Catalina.java:441)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

4 comments
Comment actions Permalink

I get the same error

0
Comment actions Permalink

That makes three of us...

java.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java:329)
at org.apache.commons.logging.LogFactory.getCachedFactory(LogFactory.java:502)
at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:264)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401)
at org.apache.commons.digester.Digester.]]>(Digester.java:345)
at org.apache.catalina.startup.Catalina.createStartDigester(Catalina.java:280)
at org.apache.catalina.startup.Catalina.start(Catalina.java:441)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

0
Comment actions Permalink

I got the same exception, but got rid of it after I supplied the following environment variable to the tomcat:
-Dorg.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl

I'm now using the latest build of the log4j commons jar and the variable is valid at least on that version. It won't work with the release version 1.0.1, though. So you probably need to update the tomcat/common/lib/commons-logging-api.jar.

My webapp starts now nicely, but I still cant debug at jsp source level. Execution just won't stop on jsp. :(

BTW, if your tomcat will decline to compile jsp pages, update tools.jar under tomcat/common/lib/ to the jdk1.4 version.

Cheers,
Tuomas

0
Comment actions Permalink

Hello Tuomas,

My webapp starts now nicely, but I still cant debug at jsp source level.

Execution just won't stop on jsp. :(

Unfortunately with this version of Tomcat it won't work. Use Tomcat 4.0.5
for debugging purposes. See my previous messages in this newsgroup (this
thread in particular) for details.


--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"


"Tuomas Huhtanen" <idea@saynomoo.com> wrote in message
news:7784759.1032556378956.JavaMail.jrun@is.intellij.net...

I got the same exception, but got rid of it after I supplied the following

environment variable to the tomcat:

-Dorg.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Lo

gFactoryImpl
>

I'm now using the latest build of the log4j commons jar and the variable

is valid at least on that version. It won't work with the release version
1.0.1, though. So you probably need to update the
tomcat/common/lib/commons-logging-api.jar.
>

My webapp starts now nicely, but I still cant debug at jsp source level.

Execution just won't stop on jsp. :(
>

BTW, if your tomcat will decline to compile jsp pages, update tools.jar

under tomcat/common/lib/ to the jdk1.4 version.
>

Cheers,
Tuomas



0

Please sign in to leave a comment.