[slf4j-dev] [Bug 138] New: Class path contains multiple SLF4J bindings

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Wed Jul 1 14:26:16 CEST 2009


http://bugzilla.slf4j.org/show_bug.cgi?id=138

           Summary: Class path contains multiple SLF4J bindings
           Product: SLF4J
           Version: 1.5.x
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P3
         Component: Core API
        AssignedTo: dev at slf4j.org
        ReportedBy: alexkra at amdocs.com


Hi,

Problem description:
"Class path contains multiple SLF4J bindings" message appears in WebLogic 10.3
log during startup of an application with SLF4J 1.5.8.
The problem is that exactly the same binding is printed twice and therefore the
warning is irrelevant:
SLF4J: Found binding in
[zip:/servers/WLServer/tmp/_WL_user/MyApplication/he3hgg/epc.jar!/org/slf4j/impl/StaticLoggerBinder.class]

Suggested solution:
In org.slf4j.LoggerFactory.singleImplementationSanityCheck() method in line 192
getResources somehow returns 2 exactly the same bindings:
Enumeration paths = LoggerFactory.class.getClassLoader().getResources(
          STATIC_LOGGER_BINDER_PATH);

So using Set implementationSet = new HashList();
in line 194 instead of List implementationList = new ArrayList();
will solve such irrelevant warning.


-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the slf4j-dev mailing list