org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/C:/apache-tomcat-7/lib/mysql-connector-java-5.1.10.jar!/com/mysql/jdbc/integration/c3p0/MysqlConnectionTester.class]; nested exception is java.io.FileNotFoundException: class path resource [com/mchange/v2/c3p0/QueryConnectionTester.class] cannot be opened because it does not exist

Stack Overflow | NewBee | 3 months ago
  1. 0

    Spring Data Jpa + MySql QueryConnectionTester.class issue

    Stack Overflow | 3 months ago | NewBee
    org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/C:/apache-tomcat-7/lib/mysql-connector-java-5.1.10.jar!/com/mysql/jdbc/integration/c3p0/MysqlConnectionTester.class]; nested exception is java.io.FileNotFoundException: class path resource [com/mchange/v2/c3p0/QueryConnectionTester.class] cannot be opened because it does not exist
  2. 0

    使用dbcp的数据源配置报错。拜请高手解决 - 开源中国社区

    oschina.net | 1 year ago
    org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/D:/developmentsoft/apache-tomcat-6.0.29/wtpwebapps/JCMP0/WEB-INF/lib/mysql-connector-java-5.1.20.jar!/com/mysql/jdbc/integration/jboss/ExtendedMysqlExceptionSorter.class]; nested exception is java.io.FileNotFoundException: class path resource [org/jboss/resource/adapter/jdbc/vendor/MySQLExceptionSorter.class] cannot be opened because it does not exist
  3. 0

    部署完S2JH后启动显示404错误,请问怎么解决呢

    GitHub | 1 year ago | gjSCUT
    org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/D:/IDE/sts-bundle/pivotal-tc-server-developer-3.1.2.RELEASE/base-instance/wtpwebapps/prototype/WEB-INF/lib/common-service-1.0.0.jar!/lab/s2jh/auth/dao/test/RoleR2PrivilegeDaoTest.class]; nested exception is java.io.FileNotFoundException: class path resource [lab/s2jh/core/test/SpringTransactionalTestCase.class] cannot be opened because it does not exist
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    #9881503 - Pastie

    pastie.org | 1 year ago
    org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [/Users/nishantpandit/VM/vm/vm-middleware/vm-common-dal/target/test-classes/com/vocado/vm/mw/common/dal/repository/MessageTimestampRepositoryTest.class]; nested exception is java.io.FileNotFoundException: resource [com/vocado/vm/mw/testUtils/AbstractMwTransactionalTestNGSpringContextTests.class] cannot be opened because it does not exist

    1 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.io.FileNotFoundException

      class path resource [com/mchange/v2/c3p0/QueryConnectionTester.class] cannot be opened because it does not exist

      at org.springframework.core.io.ClassPathResource.getInputStream()
    2. Spring Core
      AbstractTypeHierarchyTraversingFilter.match
      1. org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:158)
      2. org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:50)
      3. org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:82)
      4. org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:102)
      5. org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:77)
      6. org.springframework.core.type.filter.AbstractTypeHierarchyTraversingFilter.match(AbstractTypeHierarchyTraversingFilter.java:106)
      7. org.springframework.core.type.filter.AbstractTypeHierarchyTraversingFilter.match(AbstractTypeHierarchyTraversingFilter.java:96)
      7 frames
    3. Spring Context
      ClassPathScanningCandidateComponentProvider.findCandidateComponents
      1. org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.isCandidateComponent(ClassPathScanningCandidateComponentProvider.java:344)
      2. org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:278)
      2 frames
    4. Spring Data Core
      RepositoryBeanDefinitionParser.parse
      1. org.springframework.data.repository.config.RepositoryConfigurationSourceSupport.getCandidates(RepositoryConfigurationSourceSupport.java:53)
      2. org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport.getRepositoryConfigurations(RepositoryConfigurationExtensionSupport.java:53)
      3. org.springframework.data.repository.config.RepositoryBeanDefinitionParser.parse(RepositoryBeanDefinitionParser.java:67)
      3 frames
    5. Spring Beans
      AbstractBeanDefinitionReader.loadBeanDefinitions
      1. org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:74)
      2. org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1424)
      3. org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1414)
      4. org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:187)
      5. org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:141)
      6. org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:110)
      7. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508)
      8. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)
      9. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335)
      10. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
      11. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
      12. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:216)
      13. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:187)
      13 frames
    6. Spring
      XmlWebApplicationContext.loadBeanDefinitions
      1. org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
      2. org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
      2 frames
    7. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
      2. org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:540)
      3. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:454)
      3 frames
    8. Spring MVC
      HttpServletBean.init
      1. org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:658)
      2. org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:624)
      3. org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:672)
      4. org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:543)
      5. org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:484)
      6. org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
      6 frames
    9. JavaServlet
      GenericServlet.init
      1. javax.servlet.GenericServlet.init(GenericServlet.java:158)
      1 frame
    10. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1282)
      2. org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1195)
      3. org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:866)
      4. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:134)
      5. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      6. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
      7. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
      8. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
      9. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
      10. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      11. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)
      11 frames
    11. Grizzly HTTP
      JIoEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
      3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
      3 frames
    12. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      2 frames
    13. Tomcat Util
      TaskThread$WrappingRunnable.run
      1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      1 frame
    14. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame