You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by slideharmony <se...@tiscali.it> on 2008/02/01 14:42:17 UTC

exception on startup

Hello,
this is a newbie question!
when I start Tomcat I get the following exception:

Exception in thread "MultiThreadedHttpConnectionManager cleanup"
java.lang.NullPointerException
	at org.apache.log4j.LogManager.getLogger(LogManager.java:188)
	at org.apache.log4j.Logger.getLogger(Logger.java:104)
	at
org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)
	at
org.apache.commons.logging.impl.Log4JLogger.isDebugEnabled(Log4JLogger.java:239)
	at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ReferenceQueueThread.handleReference(MultiThreadedHttpConnectionManager.java:1063)
	at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ReferenceQueueThread.run(MultiThreadedHttpConnectionManager.java:1084)


anybody can help me?
I have put the log4j.xml file in WEB-INF/classes directory!

any help would be appreciated!
thanks

rmura

-- 
View this message in context: http://www.nabble.com/exception-on-startup-tp15226846p15226846.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


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


Re: exception on startup

Posted by Jacob Kjome <ho...@visi.com>.
You say you get this when you start Tomcat?  Looks to me like it's when it's 
shutting down, given the "cleanup" in the message.  Where do you have log4j.jar? 
In WEB-INF/lib?  What version of Tomcat?  There were certain versions of Tomcat 
that were particularly bad about mucking with classloaders and doing aggressive 
cleanup leading to NullPointerExceptions.  Try the latest one.  I know it works 
for me.

Jake

slideharmony wrote:
> Hello,
> this is a newbie question!
> when I start Tomcat I get the following exception:
> 
> Exception in thread "MultiThreadedHttpConnectionManager cleanup"
> java.lang.NullPointerException
> 	at org.apache.log4j.LogManager.getLogger(LogManager.java:188)
> 	at org.apache.log4j.Logger.getLogger(Logger.java:104)
> 	at
> org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)
> 	at
> org.apache.commons.logging.impl.Log4JLogger.isDebugEnabled(Log4JLogger.java:239)
> 	at
> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ReferenceQueueThread.handleReference(MultiThreadedHttpConnectionManager.java:1063)
> 	at
> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ReferenceQueueThread.run(MultiThreadedHttpConnectionManager.java:1084)
> 
> 
> anybody can help me?
> I have put the log4j.xml file in WEB-INF/classes directory!
> 
> any help would be appreciated!
> thanks
> 
> rmura
> 

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