You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Daniel Haynes <da...@rulefinancial.com> on 2003/03/25 10:46:10 UTC

Tomcat-4.0.3 to Tomcat-4.1.18 causes LogConfigurationException

Hi,

We've upgraded from Tomcat-4.0.3 to Tomcat-4.1.18 and are now getting an
intermittant error which causes Tomcat to fail completely :(

The error is in stderr.log:

21479094 [Thread-13] INFO filters.TimerFilter  - /euroTrading/action/logout:
16ms
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassCastException
	at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:558)
	at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:345)
	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409)
	at
org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandler.java:97)
	at org.apache.tomcat.util.log.Log.log(Log.java:198)
	at org.apache.tomcat.util.log.Log.log(Log.java:192)
	at org.apache.tomcat.util.log.Log.log(Log.java:174)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
	at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.ClassCastException
	at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:554)
	... 8 more
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassCastException
	at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:558)
	at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:345)
	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409)
	at
org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandler.java:97)
	at org.apache.tomcat.util.log.Log.log(Log.java:198)
	at org.apache.tomcat.util.log.Log.log(Log.java:192)
	at org.apache.tomcat.util.log.Log.log(Log.java:174)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
	at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.ClassCastException
	at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:554)
	... 8 more
85917734 [Thread-7] INFO filters.TimerFilter  - /euroTrading: 15ms
85917734 [Thread-7] INFO filters.TimerFilter  - /euroTrading/: 0ms

We did not get a problem with Tomcat-4.0.3. The application uses
log4j-1.2.6.jar, commons logging contains:

org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JCategory
.

Does anyone have any ideas what is causing this ?


Dan



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Please help : Urgent : Tomcat 4.1.18 start problem

Posted by Selvaraj N <se...@india.hp.com>.
Hi,

I am trying to use the following command on unix to start Tomcat 4.1.18
server. But, when I use the same command to start Tomcat 4.0.3, it
starts fine.

/opt/java/bin/java
-Djava.endorsed.dirs="/opt/tomcat/bin:/opt/tomcat/common/lib" -classpath
"/opt/java/jre/lib/rt.jar:/opt/java/lib/tools.jar:/opt/tomcat/bin/bootst
rap
.jar" -Dcatalina.base="/opt/tomcat" -Dcatalina.home="/opt/tomcat"
-Djava.io.tmpdir="/opt/tomcat/temp"
org.apache.catalina.startup.Bootstrap -config
"/opt/tomcat/conf/server.xml" start


The following was the error message :

org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException
        at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:558)
        at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:355)
        at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409)
        at
org.apache.commons.digester.Digester.<init>(Digester.java:345)
        at
org.apache.catalina.startup.Catalina.createStartDigester(Catalina.java:2
80)
        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.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Caused by: java.lang.NullPointerException
        at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:543)
        ... 12 more


As I mentioned, Tomcat 4.0.3 server starts wit out any problem. Please
help me out to solve this problem as this is very critical for us.

Thanks in  advance,
Selva


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org