Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-97

The Log4j 1.x compatibility bridge does not implement enough of Log4j

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta2
    • Fix Version/s: 2.0-beta3
    • Component/s: log4j 1.2 emulation
    • Labels:
      None

      Description

      When running an application the following stack trace was encountered.

      catching java.lang.NoSuchMethodError: org.apache.log4j.Logger.addAppender(Lorg/apache/log4j/Appender;)V
      at org.apache.velocity.runtime.log.Log4JLogChute.initAppender(Log4JLogChute.java:127) ~[velocity-1.7.jar:1.7]
      at org.apache.velocity.runtime.log.Log4JLogChute.init(Log4JLogChute.java:85) ~[velocity-1.7.jar:1.7]
      at org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:157) ~[velocity-1.7.jar:1.7]
      at org.apache.velocity.runtime.log.LogManager.updateLog(LogManager.java:269) ~[velocity-1.7.jar:1.7]
      at org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:871) ~[velocity-1.7.jar:1.7]
      at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:262) ~[velocity-1.7.jar:1.7]
      at org.apache.velocity.runtime.RuntimeSingleton.init(RuntimeSingleton.java:112) ~[velocity-1.7.jar:1.7]
      at org.apache.velocity.app.Velocity.init(Velocity.java:74) ~[velocity-1.7.jar:1.7]

      To be useful the compatibility bridge must provide some sort of support for these kinds of usages.

        Attachments

          Activity

            People

            • Assignee:
              ralph.goers@dslextreme.com Ralph Goers
              Reporter:
              ralph.goers@dslextreme.com Ralph Goers
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: