org.apache.commons.discovery.DiscoveryException: Class org.apache.commons.logging.impl.SLF4JLogFactory does not implement org.apache.commons.logging.LogFactory

QOS.ch JIRA | Matthias | 7 years ago
  1. 0

    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]

    QOS.ch JIRA | 7 years ago | Matthias
    org.apache.commons.discovery.DiscoveryException: Class org.apache.commons.logging.impl.SLF4JLogFactory does not implement org.apache.commons.logging.LogFactory
  2. 0

    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]

    QOS.ch JIRA | 7 years ago | Matthias
    org.apache.commons.discovery.DiscoveryException: Class org.apache.commons.logging.impl.SLF4JLogFactory does not implement org.apache.commons.logging.LogFactory
  3. 0

    commons-logging / slf4j / commons discovery - Non fatal Classloading issue when Axis (in the alfresco.war) starts up in Tomcat7 maven plugin

    GitHub | 2 years ago | mindthegab
    org.apache.commons.discovery.DiscoveryException: Class org.apache.commons.logging.impl.SLF4JLogFactory does not implement org.apache.commons.logging.LogFactory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Import a Web Service Client from a WSDL in Java

    Stack Overflow | 4 years ago | Diego Faria
    org.apache.commons.discovery.DiscoveryException: Class org.apache.commons.logging.impl.SLF4JLogFactory does not implement org.apache.commons.logging.LogFactory
  6. 0

    SLF4JLogFactory does not implement org.apache.commons.logging.LogFactory (Open Source Projects forum at Coderanch)

    coderanch.com | 8 months ago
    org.apache.commons.discovery.DiscoveryException: Class org.apache.commons.logging.impl.SLF4JLogFactory does not implement org.apache.commons.logging.LogFactory

    5 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. Commons Discovery
      DiscoverSingleton.find
      1. org.apache.commons.discovery.tools.ClassUtils.verifyAncestory(ClassUtils.java:180)[commons-discovery-0.2.jar:0.2]
      2. org.apache.commons.discovery.tools.SPInterface.verifyAncestory(SPInterface.java:201)[commons-discovery-0.2.jar:0.2]
      3. org.apache.commons.discovery.tools.SPInterface.newInstance(SPInterface.java:195)[commons-discovery-0.2.jar:0.2]
      4. org.apache.commons.discovery.tools.DiscoverClass.newInstance(DiscoverClass.java:579)[commons-discovery-0.2.jar:0.2]
      5. org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:418)[commons-discovery-0.2.jar:0.2]
      6. org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:378)[commons-discovery-0.2.jar:0.2]
      6 frames
    3. Axis Web Services
      LogFactory$1.run
      1. org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)[axis.jar:na]
      1 frame
    4. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)[na:1.6.0_11]
      1 frame
    5. Axis Web Services
      AxisServlet.<clinit>
      1. org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)[axis.jar:na]
      2. org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33)[axis.jar:na]
      3. org.apache.axis.transport.http.AxisServlet.<clinit>(AxisServlet.java:75)[axis.jar:na]
      3 frames
    6. Java RT
      Class.forName
      1. java.lang.Class.forName0(Native Method)[na:1.6.0_11]
      2. java.lang.Class.forName(Class.java:169)[na:1.6.0_11]
      2 frames
    7. Axis Web Services
      AxisServletBase.<clinit>
      1. org.apache.axis.transport.http.AxisServletBase.class$(AxisServletBase.java:59)[axis.jar:na]
      2. org.apache.axis.transport.http.AxisServletBase.<clinit>(AxisServletBase.java:58)[axis.jar:na]
      2 frames
    8. Java RT
      Class.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[na:1.6.0_11]
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)[na:1.6.0_11]
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)[na:1.6.0_11]
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)[na:1.6.0_11]
      5. java.lang.Class.newInstance0(Class.java:355)[na:1.6.0_11]
      6. java.lang.Class.newInstance(Class.java:308)[na:1.6.0_11]
      6 frames
    9. Glassfish Core
      Catalina.start
      1. org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1115)[catalina.jar:na]
      2. org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)[catalina.jar:na]
      3. org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)[catalina.jar:na]
      4. org.apache.catalina.core.StandardContext.start(StandardContext.java:4371)[catalina.jar:na]
      5. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)[catalina.jar:na]
      6. org.apache.catalina.core.StandardHost.start(StandardHost.java:719)[catalina.jar:na]
      7. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)[catalina.jar:na]
      8. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)[catalina.jar:na]
      9. org.apache.catalina.core.StandardService.start(StandardService.java:516)[catalina.jar:na]
      10. org.apache.catalina.core.StandardServer.start(StandardServer.java:710)[catalina.jar:na]
      11. org.apache.catalina.startup.Catalina.start(Catalina.java:578)[catalina.jar:na]
      11 frames
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_11]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[na:1.6.0_11]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_11]
      4. java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_11]
      4 frames
    11. Glassfish Core
      Bootstrap.main
      1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)[bootstrap.jar:na]
      2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)[bootstrap.jar:na]
      2 frames