Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-193

does not implement the org.apache.log4j.xml package

    Details

    • Type: Improvement
    • Status: Resolved
    • Resolution: Incomplete
    • Affects Version/s: 1.6.x
    • Fix Version/s: None
    • Component/s: log4j-over-slf4j
    • Labels:
      None
    • Environment:

      Operating System: Windows NT
      Platform: PC

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              slf4j-dev SLF4J developers list
              Reporter:
              jameskpublic@yahoo.com James Kojo
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: