org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/lyricsBaseApp-servlet.xml]; nested exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource

coderanch.com | 3 months ago
  1. 0

    java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource (Struts forum at Coderanch)

    coderanch.com | 6 months ago
    org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/lyricsBaseApp-servlet.xml]; nested exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource
  2. 0

    java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource (Struts forum at Coderanch)

    coderanch.com | 3 months ago
    org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/lyricsBaseApp-servlet.xml]; nested exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource
  3. 0

    java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource

    Coderanch | 4 years ago | Tomasz Ducin
    org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/lyricsBaseApp-servlet.xml]; nested exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ClassNotFoundException in Web Project

    Stack Overflow | 4 years ago | user1517010
    org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'myDataSource' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]; nested exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource
  6. 0

    Tomcat gives org.springframework.beans.factory.CannotLoadBeanClassException:

    Stack Overflow | 3 years ago | kk1957
    org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.myorg.springmvctutorial.web.controller.HelloWorldController] for bean with name '/helloworld.htm' defined in ServletContext resource [/WEB-INF/SpringMVCTutorial-servlet.xml]; nested exception is java.lang.ClassNotFoundException: com.myorg.springmvctutorial.web.controller.HelloWorldController at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1327)

  1. Kawada 28 times, last 6 months ago
  2. treefolk 1 times, last 1 week ago
  3. Tahir 2 times, last 2 months ago
  4. Piz 2027 times, last 4 months ago
  5. jedcua 1 times, last 4 months ago
5 more registered users
89 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. java.lang.ClassNotFoundException

    org.apache.commons.dbcp.BasicDataSource

    at org.apache.catalina.loader.WebappClassLoader.loadClass()
  2. Glassfish Core
    WebappClassLoader.loadClass
    1. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)
    2. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
    2 frames
  3. Spring Core
    ClassUtils.forName
    1. org.springframework.util.ClassUtils.forName(ClassUtils.java:260)
    1 frame
  4. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:416)
    2. org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1287)
    3. org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1258)
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:581)
    5. org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1335)
    6. org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:901)
    7. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:607)
    7 frames
  5. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
    2 frames
  6. Spring MVC
    HttpServletBean.init
    1. org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:652)
    2. org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:600)
    3. org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:666)
    4. org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:519)
    5. org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:460)
    6. org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
    6 frames
  7. JavaServlet
    GenericServlet.init
    1. javax.servlet.GenericServlet.init(GenericServlet.java:160)
    1 frame
  8. Glassfish Core
    LifecycleBase.start
    1. org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)
    2. org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)
    3. org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
    4. org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5015)
    5. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5302)
    6. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    6 frames
  9. org.apache.catalina
    ManagerServlet.doGet
    1. org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1247)
    2. org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:372)
    2 frames
  10. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    2 frames
  11. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    2 frames
  12. org.netbeans.modules
    MonitorFilter.doFilter
    1. org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
    1 frame
  13. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    3. org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
    4. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    5. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    6. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
    7. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
    8. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
    9. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
    10. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
    11. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
    12. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    13. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    13 frames
  14. Grizzly HTTP
    JIoEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
    3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
    3 frames
  15. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    3. java.lang.Thread.run(Thread.java:679)
    3 frames