multiple SLF4J bindings Error with activemq-all-5.6.0.jar

Viewed 14628

When I upgrade to activemq-all-5.6.0

I get this error during server startup

SLF4J: Class path contains multiple SLF4J bindings

I don't have this issue when using activemq-all-5.5.1

On checking I do find that there StaticLoggerBinder.class in both activemq-all-5.6.0.jar and slf4j-log4j12-1.5.10.jar which is causing the issue

Please do help in debugging this issue

My pom.xml is as follows

<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-api</artifactId>
    <version>1.5.10</version>
</dependency>
<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>jcl-over-slf4j</artifactId>
    <version>1.5.10</version>
    <scope>runtime</scope>
</dependency>
<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-log4j12</artifactId>
    <version>1.5.10</version>
    <scope>runtime</scope>
</dependency>

The active mq dependency is like this

Old Version 5.5.1 (This works)

<dependency>
    <groupId>org.apache.activemq</groupId>
    <artifactId>activemq-all</artifactId>
    <version>5.5.1</version>
</dependency>

New Version 5.6.0 (This gives the error)

<dependency>
    <groupId>org.apache.activemq</groupId>
    <artifactId>activemq-all</artifactId>
    <version>5.6.0</version>
</dependency>

Thanks in advance.

2 Answers
Related