java.lang.ClassNotFoundException: org.postgresql.Driver

Terracotta Project Issue Tracker | Yi Zhang | 5 years ago
  1. 0

    Running example 13 as it is fails with Could not load driverClass org.postgresql.Driver java.lang.ClassNotFoundException: org.postgresql.Driver at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:186) at com.mchange.v2.c3p0.DriverManagerDataSource.ensureDriverLoaded(DriverManagerDataSource.java:101) at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:133) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137) at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014) at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32) at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810) at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) [WARN] 16 Sep 01:21:10.763 PM com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0 [com.mchange.v2.c3p0.DriverManagerDataSource] Could not load driverClass org.postgresql.Driver which is not surprising because the intended classpath to find postgres.jar rem Put the path to your JDBC driver(s) in this variable @SET JDBC_CP=..\..\lib\postgres.jar "java" -cp "%QUARTZ_CP%;%JDBC_CP%" %QUARTZ_PROPS% %LOG4J_PROPS% org.quartz.examples.example13.ClusterExample %1 will not find it at Directory of C:\Terracotta\terracotta-ee-3.5.3-nightly-rev18716\quartz\lib 09/15/2011 11:34 AM <DIR> . 09/15/2011 11:34 AM <DIR> .. 01/18/2011 12:17 AM 608,376 c3p0-0.9.1.1.jar 04/21/2009 08:05 AM 15,071 jta-1.1.jar 01/09/2009 01:12 PM 367,444 log4j-1.2.14.jar 12/17/2010 12:32 PM 25,496 slf4j-api-1.6.1.jar 01/18/2011 12:17 AM 9,753 slf4j-log4j12-1.6.1.jar ============================================================================================ Now, it is unclear whether the example is telling the user to go get their own database and put their own jar there; if so it should be a lot more explicit than is currently the case at https://svn.terracotta.org/repo/quartz/trunk/examples/example13/clustering_readme.txt Furthermore the readme states that scripts to setup the database tables for various popular databases are included with quartz; however 1) It does not say where 2) I cannot find them So it seems like there's at least one issue of documentation for how/where to get the DB set up, and potentially one for us not including the needed jars/scripts to actually get things working.

    Terracotta Project Issue Tracker | 5 years ago | Yi Zhang
    java.lang.ClassNotFoundException: org.postgresql.Driver
  2. 0

    Running example 13 as it is fails with Could not load driverClass org.postgresql.Driver java.lang.ClassNotFoundException: org.postgresql.Driver at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:186) at com.mchange.v2.c3p0.DriverManagerDataSource.ensureDriverLoaded(DriverManagerDataSource.java:101) at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:133) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137) at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014) at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32) at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810) at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) [WARN] 16 Sep 01:21:10.763 PM com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0 [com.mchange.v2.c3p0.DriverManagerDataSource] Could not load driverClass org.postgresql.Driver which is not surprising because the intended classpath to find postgres.jar rem Put the path to your JDBC driver(s) in this variable @SET JDBC_CP=..\..\lib\postgres.jar "java" -cp "%QUARTZ_CP%;%JDBC_CP%" %QUARTZ_PROPS% %LOG4J_PROPS% org.quartz.examples.example13.ClusterExample %1 will not find it at Directory of C:\Terracotta\terracotta-ee-3.5.3-nightly-rev18716\quartz\lib 09/15/2011 11:34 AM <DIR> . 09/15/2011 11:34 AM <DIR> .. 01/18/2011 12:17 AM 608,376 c3p0-0.9.1.1.jar 04/21/2009 08:05 AM 15,071 jta-1.1.jar 01/09/2009 01:12 PM 367,444 log4j-1.2.14.jar 12/17/2010 12:32 PM 25,496 slf4j-api-1.6.1.jar 01/18/2011 12:17 AM 9,753 slf4j-log4j12-1.6.1.jar ============================================================================================ Now, it is unclear whether the example is telling the user to go get their own database and put their own jar there; if so it should be a lot more explicit than is currently the case at https://svn.terracotta.org/repo/quartz/trunk/examples/example13/clustering_readme.txt Furthermore the readme states that scripts to setup the database tables for various popular databases are included with quartz; however 1) It does not say where 2) I cannot find them So it seems like there's at least one issue of documentation for how/where to get the DB set up, and potentially one for us not including the needed jars/scripts to actually get things working.

    Terracotta Project Issue Tracker | 5 years ago | Yi Zhang
    java.lang.ClassNotFoundException: org.postgresql.Driver
  3. 0

    Unhelpful error message in the InstaREPL

    GitHub | 4 years ago | manuelp
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 1359#132109887

    GitHub | 1 year ago | ilevans
    java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
  6. 0

    Error create server

    GitHub | 1 year ago | douglaspedro
    java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver

  1. gehel 1 times, last 1 week ago
  2. davidvanlaatum 3 times, last 1 week ago
  3. danleyb2Interintel 1 times, last 2 weeks ago
  4. malhobayyeb 3 times, last 2 weeks ago
  5. Kialandei 1 times, last 2 weeks ago
49 more registered users
46 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.postgresql.Driver

    at java.net.URLClassLoader$1.run()
  2. Java RT
    Class.forName
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    6. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    7. java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    8. java.lang.Class.forName0(Native Method)
    9. java.lang.Class.forName(Class.java:186)
    9 frames
  3. c3p0:JDBC DataSources/Resource Pools
    ThreadPoolAsynchronousRunner$PoolThread.run
    1. com.mchange.v2.c3p0.DriverManagerDataSource.ensureDriverLoaded(DriverManagerDataSource.java:101)
    2. com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:133)
    3. com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)
    4. com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)
    5. com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)
    6. com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)
    7. com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)
    8. com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)
    9. com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)[WARN]
    9 frames