activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <de...@nighttale.net>
Subject Re: Are there some conflicts when dependency between activemq5.5 and slf4j?
Date Tue, 20 Sep 2011 09:17:02 GMT
Try using slf4j 1.6 and higher

Regards
-- 
Dejan Bosanac - http://twitter.com/dejanb
-----------------
The experts in open source integration and messaging - http://fusesource.com
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


2011/9/20 SuoNayi <suonayi2006@163.com>

> Hi all ,are there some conflicts when using acitvemq5.5 and slf4j?
>
> depenency of pom is the following:
>
>    <dependency>
>      <groupId>org.apache.activemq</groupId>
>      <artifactId>activemq-all</artifactId>
>      <version>5.5.0</version>
>    </dependency>
>  <dependency>
>   <groupId>org.slf4j</groupId>
>   <artifactId>slf4j-api</artifactId>
>   <version>1.5.11</version>
>  </dependency>
>  <dependency>
>   <groupId>org.slf4j</groupId>
>   <artifactId>jcl-over-slf4j</artifactId>
>   <version>1.5.11</version>
>  </dependency>
>
>
>
> Caused by: java.lang.AbstractMethodError:
> org.slf4j.impl.LogbackMDCAdapter.getCopyOfContextMap()Ljava/util/Map;
>  at org.slf4j.MDC.getCopyOfContextMap(MDC.java:176)
>  at
> org.apache.activemq.util.MDCHelper.getCopyOfContextMap(MDCHelper.java:30)
>  at
> org.apache.activemq.thread.PooledTaskRunner.<init>(PooledTaskRunner.java:42)
>  at
> org.apache.activemq.thread.TaskRunnerFactory.createTaskRunner(TaskRunnerFactory.java:80)
>  at
> org.apache.activemq.transport.failover.FailoverTransport.<init>(FailoverTransport.java:129)
>  at
> org.apache.activemq.transport.failover.FailoverTransportFactory.createTransport(FailoverTransportFactory.java:71)
>  at
> org.apache.activemq.transport.failover.FailoverTransportFactory.createTransport(FailoverTransportFactory.java:62)
>  at
> org.apache.activemq.transport.failover.FailoverTransportFactory.doConnect(FailoverTransportFactory.java:37)
>  at
> org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.java:51)
>  at
> org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:80)
>  at
> org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:243)
>  at
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:258)
>  at
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:230)
>  at
> org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:178)
>  at
> org.springframework.jms.connection.SingleConnectionFactory.doCreateConnection(SingleConnectionFactory.java:342)
>  at
> org.springframework.jms.connection.SingleConnectionFactory.initConnection(SingleConnectionFactory.java:288)
>  at
> org.springframework.jms.connection.SingleConnectionFactory.createConnection(SingleConnectionFactory.java:225)
>  at
> org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184)
>  at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:456)
>  at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:489)
>  at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:483)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message