Announcement Announcement Module
No announcement yet.
Spring is ignoring commons-logging.jar Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • himanshuy
    started a topic Spring is ignoring commons-logging.jar

    Spring is ignoring commons-logging.jar

    I am getting following stacktrace while deploying my web application on Tomcat v6. commons-logging.jar is already included in my class path but still Spring is ignoring it.

    org.springframework.beans.BeanInstantiationExcepti on : Could not instantiate bean class [ icationContext]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
    at org.springframework.beans.BeanUtils.instantiateCla ss(
    at org.springframework.beans.BeanUtils.instantiateCla ss(
    at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(
    at org.springframework.web.context.ContextLoader.init WebApplicationContext(
    at org.springframework.web.context.ContextLoaderListe ner.contextInitialized( 47)
    at org.apache.catalina.core.StandardContext.listenerS tart(
    at org.apache.catalina.core.StandardContext.start(Sta

  • dkarr
    You didn't say HOW you're including the jar in your classpath. You should put this jar in the WEB-INF/lib directory of your WAR file.

    Leave a comment: