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

Can't use slf4j with axis

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Incomplete
    • None
    • 1.5.x
    • Unspecified
    • None
    • Operating System: Windows NT
      Platform: PC

    Description

      I tried to use slf4j together with axis.
      Therefore I use slf4j 1.5.8 (inclusive jcl-over-slf4j-1.5.8.jar), axis 1.4 and logback 0.9.16. But when I start my tomcat I get an exception. I read, there was a similar exception in the past which was fixed within the jcl104-over-slf4j.jar in 2006. But I couldn't find anything about my concrete problem. So I thought this problem could also be fixed here.

      org.apache.commons.discovery.DiscoveryException: Class org.apache.commons.logging.impl.SLF4JLogFactory does not implement org.apache.commons.logging.LogFactory
      at org.apache.commons.discovery.tools.ClassUtils.verifyAncestory(ClassUtils.java:180) [commons-discovery-0.2.jar:0.2]
      at org.apache.commons.discovery.tools.SPInterface.verifyAncestory(SPInterface.java:201) [commons-discovery-0.2.jar:0.2]
      at org.apache.commons.discovery.tools.SPInterface.newInstance(SPInterface.java:195) [commons-discovery-0.2.jar:0.2]
      at org.apache.commons.discovery.tools.DiscoverClass.newInstance(DiscoverClass.java:579) [commons-discovery-0.2.jar:0.2]
      at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:418) [commons-discovery-0.2.jar:0.2]
      at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:378) [commons-discovery-0.2.jar:0.2]
      at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45) [axis.jar:na]
      at java.security.AccessController.doPrivileged(Native Method) [na:1.6.0_11]
      at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41) [axis.jar:na]
      at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33) [axis.jar:na]
      at org.apache.axis.transport.http.AxisServlet.<clinit>(AxisServlet.java:75) [axis.jar:na]
      at java.lang.Class.forName0(Native Method) [na:1.6.0_11]
      at java.lang.Class.forName(Class.java:169) [na:1.6.0_11]
      at org.apache.axis.transport.http.AxisServletBase.class$(AxisServletBase.java:59) [axis.jar:na]
      at org.apache.axis.transport.http.AxisServletBase.<clinit>(AxisServletBase.java:58) [axis.jar:na]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [na:1.6.0_11]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [na:1.6.0_11]
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [na:1.6.0_11]
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [na:1.6.0_11]
      at java.lang.Class.newInstance0(Class.java:355) [na:1.6.0_11]
      at java.lang.Class.newInstance(Class.java:308) [na:1.6.0_11]
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1115) [catalina.jar:na]
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992) [catalina.jar:na]
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058) [catalina.jar:na]
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4371) [catalina.jar:na]
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) [catalina.jar:na]
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) [catalina.jar:na]
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) [catalina.jar:na]
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) [catalina.jar:na]
      at org.apache.catalina.core.StandardService.start(StandardService.java:516) [catalina.jar:na]
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) [catalina.jar:na]
      at org.apache.catalina.startup.Catalina.start(Catalina.java:578) [catalina.jar:na]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_11]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_11]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_11]
      at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_11]
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) [bootstrap.jar:na]
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) [bootstrap.jar:na]

      Attachments

        Activity

          People

            slf4j-dev SLF4J developers list
            mkr Matthias
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: