org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.context.support.XmlWebApplicationContext]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

Stack Overflow | Keith Jackson | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Failed to instantiate [org.springframework.web.context.support.XmlWebApplicationContext]

    Stack Overflow | 6 months ago | Keith Jackson
    org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.context.support.XmlWebApplicationContext]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
  2. 0

    org.springframework.beans.BeanInstantiationException: Could not instantiate bean class... (Spring forum at Coderanch)

    coderanch.com | 9 months ago
    org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.web.context.support.XmlWebApplicationContext]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
  3. 0

    org.springframework.beans.BeanInstantiationException: Could not instantiate bean class...

    Coderanch | 2 years ago | stevan pivnicki
    org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.web.context.support.XmlWebApplicationContext]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    org.springframework.beans.BeanInstantiationException: Could not instantiate bean class... (Spring forum at Coderanch)

    coderanch.com | 2 months ago
    org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.web.context.support.XmlWebApplicationContext]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
  6. 0

    View Forum Topic

    calstatela.edu | 8 months ago
    java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

    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. java.lang.NoClassDefFoundError

      org/apache/commons/logging/LogFactory

      at org.springframework.core.io.support.PathMatchingResourcePatternResolver.<clinit>()
    2. Spring Core
      PathMatchingResourcePatternResolver.<clinit>
      1. org.springframework.core.io.support.PathMatchingResourcePatternResolver.<clinit>(PathMatchingResourcePatternResolver.java:169)
      1 frame
    3. Spring
      AbstractRefreshableWebApplicationContext.getResourcePatternResolver
      1. org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.getResourcePatternResolver(AbstractRefreshableWebApplicationContext.java:183)
      1 frame
    4. Spring Context
      AbstractRefreshableConfigApplicationContext.<init>
      1. org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:216)
      2. org.springframework.context.support.AbstractRefreshableApplicationContext.<init>(AbstractRefreshableApplicationContext.java:80)
      3. org.springframework.context.support.AbstractRefreshableConfigApplicationContext.<init>(AbstractRefreshableConfigApplicationContext.java:50)
      3 frames
    5. Spring
      XmlWebApplicationContext.<init>
      1. org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.<init>(AbstractRefreshableWebApplicationContext.java:95)
      2. org.springframework.web.context.support.XmlWebApplicationContext.<init>(XmlWebApplicationContext.java:62)
      2 frames
    6. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      4 frames
    7. Spring Beans
      BeanUtils.instantiateClass
      1. org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
      2. org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:104)
      2 frames
    8. Spring
      ContextLoaderListener.contextInitialized
      1. org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:380)
      2. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:313)
      3. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
      3 frames
    9. Glassfish Core
      ContainerBase$StartChild.call
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)
      2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5189)
      3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      4. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1403)
      5. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1393)
      5 frames
    10. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames