patrio2
patrio2

Reputation: 219

SLF4J Warning about multiple bindings

I try to learn RCP and want to do this but when I click run then i got multiple binding

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [bundleresource://940.fwk970900790:1/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [bundleresource://940.fwk970900790:2/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]

How can I fix it?

Thanks, patrio

Upvotes: 1

Views: 3623

Answers (1)

Subodh Joshi
Subodh Joshi

Reputation: 13512

There can be multiple issue in your environment

  1. Are you sure you have only slf4j.jar in your class path?
  2. It may be possible if you are using Maven other jar file including that slf4j.jar in your project.
  3. Be sure latest slf4j.jar should be first in eclipse classpath.

For Maven User do this

<exclusions>
    <exclusion>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-log4j12</artifactId>
    </exclusion>
</exclusions> 

Upvotes: 2

Related Questions