org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver cl ass 'oracle.jdbc.driver.OracleDriver']

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

You are not deploying the oracle driver with the application. Place the driver jars in a shared or library extension folder of your application server. (You should go with option one or two though

,
Expert tip

This might be an issue with the file location in the Spark submit command. Try it with

spark-submit --master spark://master:7077 \
     hello_world_from_pyspark.py {file location}

Solutions on the web

via Terracotta by teddyyo, 1 year ago
Cannot load JDBC driver cl ass 'oracle.jdbc.driver.OracleDriver']
via Oracle Community by 918074, 1 year ago
Cannot create PoolableConnectionFactory (ORA-01017: invalid username/password; logon denied )]
via hivmr.com by Unknown author, 1 year ago
Cannot create PoolableConnectionFactory (ORA-01017: invalid username/password; logon denied )]
via hivmr.com by Unknown author, 1 year ago
Cannot create PoolableConnectionFactory (ORA-01017: invalid username/password; logon denied )]
via hivmr.com by Unknown author, 2 years ago
Cannot create PoolableConnectionFactory (ORA-01017: invalid username/password; logon denied )]
via Oracle Community by empyre, 1 year ago
Cannot create PoolableConnectionFactory, cause: Io exception: The Network Adapter could not establish the connection]
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1130)
at org.quartz.utils.PoolingConnectionProvider.getConnection(PoolingConnectionProvider.java:194)
at org.quartz.utils.DBConnectionManager.getConnection(DBConnectionManager.java:109)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.getConnection(JobStoreSupport.java:683)
at org.quartz.impl.jdbcjobstore.JobStoreTX.getNonManagedTXConnection(JobStoreTX.java:69)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.java:3732)
at org.quartz.impl.jdbcjobstore.JobStoreTX.executeInLock(JobStoreTX.java:90)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInLock(JobStoreSupport.java:3666)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.storeJobAndTrigger(JobStoreSupport.java:1030)
at org.quartz.core.QuartzScheduler.scheduleJob(QuartzScheduler.java:743)
at org.quartz.impl.StdScheduler.scheduleJob(StdScheduler.java:243)
at org.quartz.examples.example13.ClusterExample.run(ClusterExample.java:131)
at org.quartz.examples.example13.ClusterExample.main(ClusterExample.java:217)

Users with the same issue

Once, 1 week ago
Once, 1 month ago
Once, 2 months ago
Once, 2 months ago
5 times, 2 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.