Thank you James for the response. I already have a log4j.properties used by the web application. Can I declare activemq_home directory , and place log4j.properties file in it, exclusively for active mq to use it. How can I configure a home directory for active mq ? Please let me know, thanks, Suchitha.
________________________________ From: James Strachan [mailto:[EMAIL PROTECTED] Sent: Wed 3/7/2007 10:50 PM To: [email protected] Subject: Re: active mq exceptions (when tomcat server is stopped) Yeah, I'd just copy the log4j.properties file from the ActiveMQ distro into the WEB-INF/classes directory On 3/8/07, Suchitha Koneru (sukoneru) <[EMAIL PROTECTED]> wrote: > Hello active mq users, > I am using active mq 4.0 version. Should I configure log4j > properties for active MQ . > I did not confiure one so far ? > > I have an embedded broker, which is started as a servlet listener in web.xml > of Tomcat 5.5 > > <listener> > <listener-class>com.cpnm.common.messagng.ActiveMQBrokerListener</listener-class> > </listener> > > When I shut down tomcat, I get the following exceptions > here active mq is trying to create a logger instance , which is becoming > null for some reason > Please suggest a solution for this. > > > Exception in thread "ActiveMQ Transport: tcp:///127.0.0.1:1517" > java.lang.NullPointerException > at org.apache.log4j.LogManager.getLogger(LogManager.java:188) > at org.apache.log4j.Logger.getLogger(Logger.java:103) > 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.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:83) > at > org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:63) > at > org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:114) > at > org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:122) > at > org.apache.activemq.transport.TransportLogger.onCommand(TransportLogger.java:58) > at > org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:87) > at > org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:143) > at java.lang.Thread.run(Thread.java:595) > Exception in thread "ActiveMQ Transport: tcp:///127.0.0.1:1516" > java.lang.NullPointerException > at org.apache.log4j.LogManager.getLogger(LogManager.java:188) > at org.apache.log4j.Logger.getLogger(Logger.java:103) > 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.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:83) > at > org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:63) > at > org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:114) > at > org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:122) > at > org.apache.activemq.transport.TransportLogger.onCommand(TransportLogger.java:58) > at > org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:87) > at > org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:143) > at java.lang.Thread.run(Thread.java:595) > Exception in thread "Timer-1" java.lang.NullPointerException > at > com.mchange.v2.log.log4j.Log4jMLog$Log4jMLogger.isLoggable(Log4jMLog.java:252) > at > com.mchange.v2.resourcepool.BasicResourcePool$CullTask.run(BasicResourcePool.java:1285) > at java.util.TimerThread.mainLoop(Timer.java:512) > at java.util.TimerThread.run(Timer.java:462) > thank you, > Suchitha. > > -- James ------- http://radio.weblogs.com/0112098/
