[slf4j-dev] [Bug 228] New: java.lang.NoClassDefFoundError: org.slf4j.impl.StaticLoggerBinder

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Fri Jul 1 14:08:38 CEST 2011


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

           Summary: java.lang.NoClassDefFoundError:
                    org.slf4j.impl.StaticLoggerBinder
           Product: SLF4J
           Version: 1.6.x
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Core API
        AssignedTo: slf4j-dev at qos.ch
        ReportedBy: kevinth.fang at gmail.com


This exception thrown when no binding package included in the classpath.
I'm using 1.6.1 jar. I think above 1.6 the api jar should not throw this
exception because it should use the NOP binding by default.
I tried 2 jdks. for sun jdk 1.5 there is no such exceptions. But for ibm jdk
1.6 this exception is thrown.
I think the logic in LoggerFactory used to decide the binding is not strong
enough. It just search the substring "org/slf4j/impl/StaticLoggerBinder" in the
exception message. Different jdks may throw different messages.

-- 
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