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

Missing method in org.apache.log4j.Logger

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: log4j-over-slf4j
    • Labels:
      None
    • Environment:

      Operating System: Linux
      Platform: PC

      Description

      It's in version 1.7.2 (can't find it in the list).

      When using default Velocity

      java.lang.NoSuchMethodError: org.apache.log4j.Logger.setLevel(Lorg/apache/log4j/Level;)V
      at org.apache.velocity.runtime.log.Log4JLogChute.initAppender(Log4JLogChute.java:120)
      at org.apache.velocity.runtime.log.Log4JLogChute.init(Log4JLogChute.java:85)
      at org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:150)
      at org.apache.velocity.runtime.log.LogManager.updateLog(LogManager.java:208)
      at org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:728)
      at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:240)
      at org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:993)
      at org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:972)
      at com.otr.sufd.server.startup.SufdDHtmlLayoutServlet.prepareStartupScreen(SufdDHtmlLayoutServlet.java:84)
      at com.otr.sufd.server.startup.SufdDHtmlLayoutServlet.init(SufdDHtmlLayoutServlet.java:56)
      at javax.servlet.GenericServlet.init(GenericServlet.java:241)
      at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
      at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:736)
      at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
      at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
      at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
      at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
      at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      at org.mortbay.jetty.handler.AbstractStatisticsHandler.doStart(AbstractStatisticsHandler.java:24)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      at org.mortbay.jetty.Server.doStart(Server.java:224)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.mortbay.start.Main.invokeMain(Main.java:194)
      at org.mortbay.start.Main.start(Main.java:534)
      at org.mortbay.start.Main.start(Main.java:441)
      at org.mortbay.start.Main.main(Main.java:119)

        Attachments

          Activity

            People

            • Assignee:
              slf4j-dev SLF4J developers list
              Reporter:
              ipe4enko@gmail.com pe4enko
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: