Wie zu beheben "SLF4J: Class-path enthält mehrere SLF4J-Bindungen" beim Start von Spielen 2.3.x?
Aktualisierte ich meine version von Play-und andere Bibliotheken, und ich sehe jetzt, dieses:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/paul/.ivy2/cache/org.slf4j/slf4j-nop/jars/slf4j-nop-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/paul/.ivy2/cache/org.slf4j/slf4j-jdk14/jars/slf4j-jdk14-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/paul/.ivy2/cache/org.slf4j/slf4j-simple/jars/slf4j-simple-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.helpers.NOPLoggerFactory]
Ich versuche auf die Spur, wo diese herkommen, aber wenn ich show managed-classpath
, die nur slf4j Gläser sind
/home/paul/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.7.6.jar
/home/paul/.ivy2/cache/org.slf4j/jul-to-slf4j/jars/jul-to-slf4j-1.7.6.ja
/home/paul/.ivy2/cache/org.slf4j/jcl-over-slf4j/jars/jcl-over-slf4j-1.7.6.jar
Sehe ich nie slf4j-nop-1.7.7.jar
oder slf4j-jdk14-1.7.7.jar
oder slf4j-simple-1.7.7.jar
.
Wie sind diese im classpath?
- Das ist ein bekanntes Problem (bereits eingereicht issue-tracker).
- Könnten Sie uns einen link?
- github.com/playframework/playframework/issues/3206
Du musst angemeldet sein, um einen Kommentar abzugeben.
Folgenden die Kommentare und mögliche Lösungen, die ich vorschlagen kann, von mir für die Aufnahme in
build.sbt
für Benutzer der Versionen ohne Update, z.B. Spielen 2.3.2:Bevor:
Nach (mit der änderung):
Diese sind die Projekt-Abhängigkeiten:
$ show libraryDependencies
[info] List(org.scala-lang:scala-library:2.11.2, com.typesafe.play:twirl-api:1.0.2, com.typesafe.play:play:2.3.2, com.typesafe.play:play-test:2.3.2:test, com.typesafe.play:play-docs:2.3.2:docs, com.typesafe.play:play-jdbc:2.3.2, com.typesafe.play:anorm:2.3.2, com.typesafe.play:play-cache:2.3.2, com.typesafe.play:play-ws:2.3.2, com.typesafe.play:filters-helpers:2.3.2, org.webjars:webjars-play:2.3.0, org.webjars:requirejs:2.1.14-1, org.webjars:underscorejs:1.6.0-3, org.webjars:jquery:2.1.1, org.webjars:bootstrap:3.2.0, org.webjars:angularjs:1.3.0-beta.17, org.postgresql:postgresql:9.3-1102-jdbc41, org.slf4j:slf4j-api:1.7.7, org.slf4j:jcl-over-slf4j:1.7.7)