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

coderanch.com | 2 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    initWebApplicationContext Error creating bean with name primeface

    Stack Overflow | 2 years ago | ProSyth
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'empresaMB' defined in file [C:\Users\ProSyth\miJee2\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\Apliconta2WebPrimefaces\WEB-INF\classes\com\atorresbr\springapp\EmpresasManagedBean.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atorresbr.springapp.EmpresasManagedBean]: Constructor threw exception; nested exception is java.lang.NullPointerException
  2. 0

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

    coderanch.com | 8 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... (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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  6. 0

    Spring threw nested exception java.lang.ExceptionInInitializerError

    Stack Overflow | 3 years ago | Chinthaka
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bookingEngineDao' defined in class path resource [spring/business-config.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.linklk.ticketslk.booking.engine.dao.BookingEngineDaoImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError

    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:176)
      1 frame
    3. Spring
      AbstractRefreshableWebApplicationContext.getResourcePatternResolver
      1. org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.getResourcePatternResolver(AbstractRefreshableWebApplicationContext.java:187)
      1 frame
    4. Spring Context
      AbstractRefreshableConfigApplicationContext.<init>
      1. org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:229)
      2. org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:220)
      3. org.springframework.context.support.AbstractRefreshableApplicationContext.<init>(AbstractRefreshableApplicationContext.java:81)
      4. org.springframework.context.support.AbstractRefreshableConfigApplicationContext.<init>(AbstractRefreshableConfigApplicationContext.java:50)
      4 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(Unknown Source)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      4. java.lang.reflect.Constructor.newInstance(Unknown Source)
      4 frames
    7. Spring Beans
      BeanUtils.instantiateClass
      1. org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
      2. org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:105)
      2 frames
    8. Spring
      ContextLoaderListener.contextInitialized
      1. org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:348)
      2. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:281)
      3. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
      3 frames
    9. Glassfish Core
      ContainerBase$StartChild.call
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)
      2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5528)
      3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      4. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
      5. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
      5 frames
    10. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(Unknown Source)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      4. java.lang.Thread.run(Unknown Source)
      4 frames