camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Return of CAMEL-1751? (Tomcat hangs on shutdown)
Date Thu, 18 Nov 2010 10:44:16 GMT
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
<imavroukakis@gameaccountnetwork.com> 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: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message