[slf4j-user] Class path contains multiple SLF4J bindings: gossip and slf4j-log4j12

Nils Breunese N.Breunese at vpro.nl
Thu Oct 7 17:09:12 CEST 2010


Hello all,

We have a fairly complex Maven build. One of the submodules uses org.codehaus.gmaven.runtime:gmaven-runtime-1.7:1.3 which brings in org.sonatype.gossip:gossip:1.0 as a dependency. Another submodule brings in org.slf4j:slf4j-log4j12:1.5.11 as a dependency. Both gossip and slf4j-log4j12 contain a org.slf4j.impl.StaticLoggerBinder class, so when starting our project we are greeted with the following messages:

----
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/files/sts-vpro/wtpwebapps/magnolia-site/WEB-INF/lib/gossip-1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/files/sts-vpro/wtpwebapps/magnolia-site/WEB-INF/lib/slf4j-log4j12-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
----

We have looked at http://www.slf4j.org/codes.html#multiple_bindings, but are still not certain how to resolve this situation. Does it make sense that the gossip jar contains a  org.slf4j.impl.StaticLoggerBinder as well?

Nils.
------------------------------------------------------------------------
 VPRO
 phone:  +31(0)356712911
 e-mail: info at vpro.nl
 web:    www.vpro.nl
------------------------------------------------------------------------


More information about the slf4j-user mailing list