java.sql.SQLException: com.mysql.jdbc.Driver

Stack Overflow | Jerzy Piejko | 2 months ago
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

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 java.net.URLClassLoader.findClass()
  2. Java RT
    Class.forName
    1. java.net.URLClassLoader.findClass(Unknown Source)
    2. java.lang.ClassLoader.loadClass(Unknown Source)
    3. java.lang.ClassLoader.loadClass(Unknown Source)
    4. java.lang.Class.forName0(Native Method)
    5. java.lang.Class.forName(Unknown Source)
    5 frames
  3. org.apache.tomcat
    DataSourceFactory.getObjectInstance
    1. org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:246)
    2. org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182)
    3. org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:713)
    4. org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:647)
    5. org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:468)
    6. org.apache.tomcat.jdbc.pool.ConnectionPool.<init>(ConnectionPool.java:145)
    7. org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool(DataSourceProxy.java:116)
    8. org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.java:103)
    9. org.apache.tomcat.jdbc.pool.DataSourceFactory.createDataSource(DataSourceFactory.java:554)
    10. org.apache.tomcat.jdbc.pool.DataSourceFactory.getObjectInstance(DataSourceFactory.java:242)
    10 frames
  4. Web Container Naming Utilities
    ResourceFactory.getObjectInstance
    1. org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:141)
    1 frame
  5. Java RT
    NamingManager.getObjectInstance
    1. javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
    1 frame
  6. Web Container Naming Utilities
    NamingContext.lookup
    1. org.apache.naming.NamingContext.lookup(NamingContext.java:848)
    2. org.apache.naming.NamingContext.lookup(NamingContext.java:159)
    3. org.apache.naming.NamingContext.lookup(NamingContext.java:836)
    4. org.apache.naming.NamingContext.lookup(NamingContext.java:173)
    4 frames
  7. Glassfish Core
    HostConfig$DeployWar.run
    1. org.apache.catalina.core.NamingContextListener.addResource(NamingContextListener.java:1110)
    2. org.apache.catalina.core.NamingContextListener.createNamingContext(NamingContextListener.java:689)
    3. org.apache.catalina.core.NamingContextListener.lifecycleEvent(NamingContextListener.java:273)
    4. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    5. org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    6. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5522)
    7. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    8. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
    9. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
    10. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    11. org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
    12. org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
    12 frames
  8. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    2. java.util.concurrent.FutureTask.run(Unknown Source)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    5. java.lang.Thread.run(Unknown Source)
    5 frames