Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

SLF4JLogFactory does not implement org.apache.commons.logging.LogFactory

Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i'm getting this exception in stack trace.Googled it but not helped me.Suggest me how to solve it.

ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/MozartCCNewUI].[action]] Servlet.service() for servlet action threw exception: org.apache.commons.discovery.DiscoveryException: Class org.apache.commons.logging.impl.SLF4JLogFactory does not implement org.apache.commons.logging.LogFactory
at [:0.2]
at [:0.2]
at [:0.2]
at [:0.2]
at [:0.2]
at [:0.2]
at org.apache.axis.components.logger.LogFactory$ [:]
at Method) [:1.6.0_45]
at org.apache.axis.components.logger.LogFactory.getLogFactory( [:]
at org.apache.axis.components.logger.LogFactory.<clinit>( [:]
at org.apache.axis.handlers.BasicHandler.<clinit>( [:]
at org.apache.axis.client.Service.getAxisClient( [:]
at org.apache.axis.client.Service.<init>( [:]
at com.netsuite.webservices.platform_2013_2.NetSuiteServiceLocator.<init>( [:]
at com.zyom.netsuite.NetsuiteIntegrationManager$DataCenterAwareNetSuiteServiceLocator.<init>( [:]
at com.zyom.netsuite.NetsuiteIntegrationManager.<init>( [:]
at com.zyom.netsuite.NetsuiteIntegrationManager.getNetSuiteIntegrationManager( [:]
at com.zyom.netsuite.controller.NetsuiteIntegrationManagerContoller.execute( [:]
at org.apache.struts.action.RequestProcessor.processActionPerform( [:1.2.7]
at org.apache.struts.action.RequestProcessor.process( [:1.2.7]
at org.apache.struts.action.ActionServlet.process( [:1.2.7]
at org.apache.struts.action.ActionServlet.doGet( [:1.2.7]
at javax.servlet.http.HttpServlet.service( [:1.0.0.Final]
at javax.servlet.http.HttpServlet.service( [:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( [:6.1.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter( [:6.1.0.Final]
at [:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( [:6.1.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter( [:6.1.0.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke( [:6.1.0.Final]
at org.apache.catalina.core.StandardContextValve.invoke( [:6.1.0.Final]
at [:6.1.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event( [:1.1.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke( [:1.1.0.Final]
at [:6.1.0.Final]
at [:6.1.0.Final]
at org.apache.catalina.core.StandardHostValve.invoke( [:6.1.0.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke( [:6.1.0.Final]
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke( [:6.1.0.Final]
at org.apache.catalina.core.StandardEngineValve.invoke( [:6.1.0.Final]
at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke( [:6.1.0.Final]
at org.apache.catalina.connector.CoyoteAdapter.service( [:6.1.0.Final]
at org.apache.coyote.http11.Http11Processor.process( [:6.1.0.Final]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process( [:6.1.0.Final]
at$ [:6.1.0.Final]
at [:1.6.0_45]
Posts: 24655
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My guess is that the two classes are being loaded by different classloaders, and that therefore neither of them can implement or subclass the other. That would mean that the two classes are in different jar files, and that those two jar files are loaded in different contexts. For example one might be loaded by the part of Tomcat which is available to all web applications, and the other might be loaded by your web application. So I would advise putting the two jars in the same place.
Power corrupts. Absolute power xxxxxxxxxxxxxxxx is kinda neat.
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!