Hi Claus, Thanks for pointing this out (Spring JMS) , don't know how the hell I missed it. PEBKAC.
Y. On 22 November 2010 12:30, Claus Ibsen <[email protected]> wrote: > And actually the issue you see is when Spring JMS is shutting down. So > its likely more somethat with that. > Are you having Spring JARs outside the WAR? > > Also pay attention that the log4j JAR may also be outside the WAR in > some lib folder of tomcat. > So try looking for that JAR and ensure you got the same version in > both places. Or only got the JAR once. > > > > On Mon, Nov 22, 2010 at 1:29 PM, Claus Ibsen <[email protected]> > wrote: > > On Mon, Nov 22, 2010 at 1:08 PM, Yiannis Mavroukakis > > <[email protected]> wrote: > >> Hi Claus, should I open/reopen a ticket about this? > >> > > > > I dont think its a Camel problem when some classpath issue on Tomcat. > > > > For example this examples works just fine on Tomcat > > http://camel.apache.org/cxf-tomcat-example.html > > > > Also the example in the Camel in Action book works fine as well in > Tomcat. > > > > > > > > > >> Thanks, > >> > >> Yiannis > >> > >> On 18 November 2010 16:40, Yiannis Mavroukakis < > >> [email protected]> wrote: > >> > >>> 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/ > >>>> > >>> > >>> > >> > > > > > > > > -- > > 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/ > > > > > > -- > 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/ >
