SLF4J finds the two bindings below, but not the log4j2 binding ( *log4j-slf4j-impl-2.0.jar*).
So first you need to add the log4j2 slf4j impl dependency. Second the classpath will still have the two jars below that also provide a binding. So whichever comes first in the classpath is the binding used by your app. Not ideal. I suggest removing the other bindings. Unfortunately, the activemq jar seems to bundle the binding in an all-in-one jar, making it hard to remove that binding. Perhaps activemq also provides a collection of component jars so you can exclude the slf4j binding... SLF4J: Found binding in [jar:file:/C:/Users/manchlia/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/C:/Users/manchlia/.m2/repository/org/apache/activemq/activemq-all/5.9.0/activemq-all-5.9.0.jar!/org/slf4j/impl/StaticLoggerBinder.class] On Thursday, April 3, 2014, Mohit Anchlia <mohitanch...@gmail.com> wrote: > I don't think there is any problem with that jar, the issue is that I am > trying to use log4j 2 but the dependency jar that I am using is using log4j > 1. When I switch back to log4j 1 everything works fine. Is there a way to > avoid this compatibility issue? Not sure how others that have similar > issue are able to migrate today to log4j 2 > > On Wed, Apr 2, 2014 at 4:48 PM, Remko Popma > <remko.po...@gmail.com<javascript:;>> > wrote: > > > The problem is in activemq-all-5.9.0.jar. I suggest you contact the > > activemq team. > > > > Sent from my iPhone > > > > > On 2014/04/03, at 2:53, Gary Gregory > > > <garydgreg...@gmail.com<javascript:;>> > wrote: > > > > > > activemq-all-5.9.0.jar > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > log4j-user-unsubscr...@logging.apache.org<javascript:;> > > For additional commands, e-mail: > > log4j-user-h...@logging.apache.org<javascript:;> > > > > >