org.apache.openjpa.persistence.PersistenceException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'

Stack Overflow | ritabrata saha | 7 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

    Oozie could not be started [ Oozie 4.1.0 with Hadoop 2.6.0]

    Stack Overflow | 7 months ago | ritabrata saha
    org.apache.openjpa.persistence.PersistenceException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
  2. 0

    Tomcat 7 fails to load ojdbc6.jar no matter where I have it specified

    Stack Overflow | 4 years ago | Carlos
    org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class '"oracle.jdbc.driver.OracleDriver"/>'
  3. 0

    upgrading from 4.2b to 4.2c | Alfresco Forums

    alfresco.com | 2 years ago
    org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error relating to the org.hsqldb.jdbcDriver - Spring Forum

    spring.io | 1 year ago
    org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.hsqldb.jdbcDriver'
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

    com.mysql.jdbc.Driver

    at org.apache.catalina.loader.WebappClassLoader.loadClass()
  2. Glassfish Core
    WebappClassLoader.loadClass
    1. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
    2. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
    2 frames
  3. Commons DBCP
    BasicDataSource.getConnection
    1. org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1420)
    2. org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1429)
    3. org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371)
    4. org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
    4 frames
  4. OpenJPA Aggregate Jar
    EntityManagerFactoryImpl.createEntityManager
    1. org.apache.openjpa.lib.jdbc.DelegatingDataSource.getConnection(DelegatingDataSource.java:110)
    2. org.apache.openjpa.lib.jdbc.DecoratingDataSource.getConnection(DecoratingDataSource.java:87)
    3. org.apache.openjpa.jdbc.sql.DBDictionaryFactory.newDBDictionary(DBDictionaryFactory.java:91)
    4. org.apache.openjpa.jdbc.sql.DBDictionaryFactory.newDBDictionary(DBDictionaryFactory.java:102)
    5. org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(JDBCConfigurationImpl.java:603)
    6. org.apache.openjpa.jdbc.meta.MappingRepository.endConfiguration(MappingRepository.java:1518)
    7. org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:531)
    8. org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:456)
    9. org.apache.openjpa.lib.conf.PluginValue.instantiate(PluginValue.java:120)
    10. org.apache.openjpa.conf.MetaDataRepositoryValue.instantiate(MetaDataRepositoryValue.java:68)
    11. org.apache.openjpa.lib.conf.ObjectValue.instantiate(ObjectValue.java:83)
    12. org.apache.openjpa.conf.OpenJPAConfigurationImpl.newMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:967)
    13. org.apache.openjpa.conf.OpenJPAConfigurationImpl.getMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:958)
    14. org.apache.openjpa.kernel.AbstractBrokerFactory.makeReadOnly(AbstractBrokerFactory.java:644)
    15. org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:203)
    16. org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:156)
    17. org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:227)
    18. org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:154)
    19. org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:60)
    19 frames
  5. org.apache.oozie
    Services.loadServices
    1. org.apache.oozie.service.JPAService.getEntityManager(JPAService.java:499)
    2. org.apache.oozie.service.JPAService.init(JPAService.java:200)
    3. org.apache.oozie.service.Services.setServiceInternal(Services.java:383)
    4. org.apache.oozie.service.Services.setService(Services.java:369)
    5. org.apache.oozie.service.Services.loadServices(Services.java:302)
    5 frames