Karaf
  1. Karaf
  2. KARAF-238

SLF4J Duplicate bindings warning when using Equinox

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0, 2.1.0
    • Fix Version/s: 2.1.1, 2.2.0
    • Component/s: None
    • Labels:
      None

      Description

      When starting Karaf with Equinox as the OSGi Framework, you get his SLF4J warning:

      SLF4J: Class path contains multiple SLF4J bindings.
      SLF4J: Found binding in [jar:file:/Users/gert/opt/apache-karaf-2.0.0-fuse-SNAPSHOT/lib/karaf-client.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J: Found binding in [bundleresource://3.fwk545215872/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

      We should make sure that the class inside the client jar is no longer visible to the Pax Logging bundle to fix this.

        Activity

        Hide
        Gert Vanthienen added a comment -
        Show
        Gert Vanthienen added a comment - Fixed in trunk in http://svn.apache.org/viewvc?view=revision&revision=1002983 and backported into the Karaf 2.0.x branch in http://svn.apache.org/viewvc?view=revision&revision=1002984

          People

          • Assignee:
            Gert Vanthienen
            Reporter:
            Gert Vanthienen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development