jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bastian Bowe <BaB...@gmx.de>
Subject NullPointerException with Tomcat Howto
Date Sat, 12 Jul 2003 21:04:43 GMT
Hello,

I'm trying to get through the howto_tomcat.html from the Cactus
documentation.

When running
http://localhost:8082/cactusTest/ServletTestRunner?suite=TestSampleServlet
(You see I didn't follow the Howto very strictly. But I was really
carefull) I get the following output:
...tomcatstuff...
org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException
	at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:509)
	at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:285)
	at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:255)
	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
	at org.apache.cactus.server.runner.ServletTestRunner.around91_doGet(ServletTestRunner.java;org/apache/cactus/util/log/LogAspect.aj(1k):1142)
	at org.apache.cactus.server.runner.ServletTestRunner.doGet(ServletTestRunner.java;org/apache/cactus/util/log/LogAspect.aj(1k):101)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:197)
	at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
	at java.security.AccessController.doPrivileged(Native Method)
....
hope that's enough.

I've found some text about people who wanted to integrate tomcat into
IDEA. They've had the same (or at least very similar) output. The
solution was to set
CATALINA_OPTS="-Dorg.apache.commons.logging.LogFactory=org.apache.commons.loggin
g.impl.LogFactoryImpl" but that didn't solve the problem for me.

I'm using Debian GNU/Linux Woody with Tomcat 4.0.3-3woody2 with j2ee
1.3.1 and j2sdk1.4.1_02

Regards
-- 
Bastian Bowe
Sent using Debian GNU/Linux - http://www.debian.org

Mime
View raw message