I have a problem with my dependency tree and multiple SLF4J binding. What I have found out so far is that this usually only causes a warning, but in my case, it seems to prevent my program from starting: Here are the exceptions that I get:
SLF4J: the class path contains several SLF4J bindings. SLF4J: found binding in [jar: file: / C: /Users/FischerNi/.m2/repository/org/slf4j/slf4j-jdk14/1.5.3/slf4j-jdk14-1.5.3.jar! / Org / slf4j / osusch / StaticLoggerBinder.class] SLF4J: found binding in [jar: file: / C: /Users/FischerNi/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar ! /Org/slf4j/exist/StaticLoggerBinder.class] SLF4J: see http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: slf4j-api 1.6.x (or later) is not compatible with this binding. SLF4J: Your binding is version 1.5.5 or earlier. SLF4J: Update your binding to version 1.6.x. or 2.0.x An exception in the "main" thread java.lang.NoSuchMethodError: org.slf4j.impl.StaticLoggerBinder.getSingleton () Lorg / slf4j / impl / StaticLoggerBinder;
and this is the corresponding part of my dependencies: net.lightbody.bmp browsermob-proxy 2.0-beta-8
<dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> </dependency>
Can someone please tell me how to solve this problem?
java maven dependencies slf4j
Biffy
source share