[slf4j-dev] [Bug 202] New: does not implement the org.apache.log4j.xml package

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Sat Oct 16 03:35:18 CEST 2010


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

           Summary: does not implement the org.apache.log4j.xml package
           Product: SLF4J
           Version: 1.6.x
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: log4j-over-slf4j
        AssignedTo: slf4j-dev at qos.ch
        ReportedBy: jameskpublic at yahoo.com


the log4j-over-slf4j bridge doesn't implement the xml package of the underlying
log4j library.
This causes an error in the bindings that is results in a NoSuchMethodError run
time error.

the xml.DOMConfigurator class makes reference to the LogManager class. Since
the LogManager class is bound to the slf4j implementation, which does not
implement the getLoggerRepository() method, an error ensues.

java.lang.NoSuchMethodError:
org.apache.log4j.LogManager.getLoggerRepository()Lorg/apache/log4j/spi/LoggerRepository;
        at
org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:743)
~[log4j-1.2.14.jar:na]

This can either be fixed by intercepting calls to the DOMConfigurator, or by
implementing the getLoggerRepository() method on the LogManager.


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