Hi Claus it's already there. 481535 Oct 27 10:56 log4j-1.2.16.jar
grep NOPLoggerRepository /usr/local/apache/tomcat/webapps/ermis-deployer-0.14-SNAPSHOT/WEB-INF/lib/* Binary file /usr/local/apache/tomcat/webapps/ermis-deployer-0.14-SNAPSHOT/WEB-INF/lib/log4j-1.2.16.jar matches On 18 November 2010 10:44, Claus Ibsen <[email protected]> wrote: > Looks like you need some log4j JARs on your classpath. > > For example add log4j.jar in the web-inf/lib in your WAR. > And make sure it has that class reported below. > > > On Wed, Nov 17, 2010 at 12:09 PM, Yiannis Mavroukakis > <[email protected]> wrote: > > Hello everyone, > > > > I'm running a Camel instance in a Tomcat, and I see a ton of these during > > shutdown (and tomcat hangs) > > > > Exception in thread "DefaultMessageListenerContainer-27" > > java.lang.NoClassDefFoundError: org/apache/log4j/spi/NOPLoggerRepository > > at org.apache.log4j.LogManager.getLoggerRepository(LogManager.java:197) > > at org.apache.log4j.LogManager.getLogger(LogManager.java:228) > > at org.apache.log4j.Logger.getLogger(Logger.java:104) > > at > > > org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:289) > > at > org.apache.commons.logging.impl.Log4JLogger.trace(Log4JLogger.java:166) > > at > > > org.springframework.jms.support.JmsUtils.closeMessageConsumer(JmsUtils.java:158) > > at > > > org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.clearResources(DefaultMessageListenerContainer.java:1096) > > at > > > org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:998) > > at java.lang.Thread.run(Thread.java:619) > > > > Full trace at http://pastebin.com/KkU2Q9jW > > > > From the looks of the JIRA tickets, this was solved, so could this be a > > regression? Using Camel 2.5.0 with latest activeMQ. > > > > activeMQ config is as per the Camel documentation examples > > > > <bean id="jmsConnectionFactory" class= > > "org.apache.activemq.ActiveMQConnectionFactory"> > > > > <property name="brokerURL" value="tcp://192.168.1.5:61616" /> > > > > <property name="useDedicatedTaskRunner" value="true" /> > > > > </bean> > > > > > > <bean id="pooledConnectionFactory" class= > > "org.apache.activemq.pool.PooledConnectionFactory"> > > > > <property name="maxConnections" value="8" /> > > > > <property name="maximumActive" value="500" /> > > > > <property name="connectionFactory" ref="jmsConnectionFactory" /> > > > > </bean> > > > > <bean id="jmsConfig" > class="org.apache.camel.component.jms.JmsConfiguration" > >> > > > > <property name="connectionFactory" ref="pooledConnectionFactory" /> > > > > <property name="transacted" value="false" /> > > > > <property name="concurrentConsumers" value="50" /> > > > > </bean> > > > > <bean id="activemq" class= > > "org.apache.activemq.camel.component.ActiveMQComponent"> > > > > <property name="configuration" ref="jmsConfig" /> > > > > </bean> > > > > TIA, > > > > Yiannis > > > > > > -- > Claus Ibsen > ----------------- > FuseSource > Email: [email protected] > Web: http://fusesource.com > Twitter: davsclaus > Blog: http://davsclaus.blogspot.com/ > Author of Camel in Action: http://www.manning.com/ibsen/ >
