Hi Bastian,

I've personally not had any issue with Tomcat 4.0.3. Normally
commons-logging is quite flexible and would try various configs before
failing.

I think the best way is to report this to commons-dev and try to find
the solution with the commons-logging folks. I don't think it is related
to Cactus and I'm not expert enough in commons-logging to provide you
right-away with an answer.

As a trial, can you try to do *exactly* what was in the tomcat howto
(just to verify if it works in your environment)?

Thanks
-Vincent

> -----Original Message-----
> From: Bastian Bowe [mailto:[EMAIL PROTECTED]
> Sent: 12 July 2003 23:05
> To: [EMAIL PROTECTED]
> Subject: NullPointerException with Tomcat Howto
> 
> Hello,
> 
> I'm trying to get through the howto_tomcat.html from the Cactus
> documentation.
> 
> When running
>
http://localhost:8082/cactusTest/ServletTestRunner?suite=TestSampleServl
et
> (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(LogFactoryImp
l.
> java:509)
>       at
>
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
l.
> java:285)
>       at
>
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
l.
> java:255)
>       at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
>       at
>
org.apache.cactus.server.runner.ServletTestRunner.around91_doGet(Servlet
Te
> stRunner.java;org/apache/cactus/util/log/LogAspect.aj(1k):1142)
>       at
>
org.apache.cactus.server.runner.ServletTestRunner.doGet(ServletTestRunne
r.
> 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(Applica
ti
> onFilterChain.java:247)
>       at
>
org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilt
er
> Chain.java:197)
>       at
>
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterC
ha
> in.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
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to