camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dcanibek <deger.cani...@gmail.com>
Subject slf4j multiple bindings
Date Tue, 03 Apr 2012 12:33:47 GMT
Hi all,
I am developing jms message broker system by using activemq.5.5.1 and
camel.2.7.0 (version of the camel is the one that comes with activemq
distribution).

Here is my problem, in my development environment I am using camel 2.9.0 and
camel-core and some other archieves depends slf4j-log4j12-1.6.1.jar but in
activemq under lib/optional directory there is older version of the same
archieve slf4j-log4j12-1.5.11.jar. Also log4j archieve is log4j-1.2.14.jar.

I am not able to use both version of the slf4j archieves:

SLF4J: The requested version 1.6 by your slf4j binding is not compatible
with [1.5.5, 1.5.6, 1.5.7, 1.5.8, 1.5.9, 1.5.10, 1.5.11]
SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further
details.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
[jar:file:../lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:../lib/optional/slf4j-log4j12-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
explanation.
Failed to execute main task. Reason: java.lang.AbstractMethodError:
org.slf4j.impl.Log4jLoggerAdapter.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V

I am not able to downgrade camel version in my development environment
because 2.7.0 version related archieves are no longer hosted in repositories
(I guess :) ). And also not able to use 1.6.1 version of the slf4j archieve:

Failed to execute main task. Reason: java.lang.NoSuchMethodError:
org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V

Please help me out..

--
View this message in context: http://camel.465427.n5.nabble.com/slf4j-multiple-bindings-tp5614976p5614976.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message