org.quartz.JobPersistenceException: Failed to obtain DB connection from data source 'schedulerDS': java.sql.SQLException: Could not retrieve datasource via JNDI url 'jdbc/schedulerDS' javax.naming.NameNotFoundException: While trying to lookup 'jdbc.schedulerDS' didn't find subcontext 'jdbc'. Resolved '' [See nested exception: java.sql.SQLException: Could not retrieve datasource via JNDI url 'jdbc/schedulerDS' javax.naming.NameNotFoundException: While trying to lookup 'jdbc.schedulerDS' didn't find subcontext 'jdbc'. Resolved '']

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

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Oracle Community by mvsrikanthss, 1 year ago
Failed to obtain DB connection from data source 'schedulerDS': java.sql.SQLException: Could not retrieve datasource via JNDI url 'jdbc/schedulerDS' javax.naming.NameNotFoundException: While trying to lookup 'jdbc.schedulerDS' didn't find subcontext
via Terracotta by danielwa, 1 year ago
Failed to obtain DB connection from data source 'myDS': org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'oracle.jdbc.driver.OracleDriver' for connect URL 'jdbc:jdbc:oracle:oci@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST
via Terracotta by kadya, 1 year ago
Failed to obtain DB connection from data source 'utildb': java.lang.NullPointerException [See nested exception: java.lang.NullPointerException]
via Terracotta by mallik, 1 year ago
Failed to obtain DB connection from data source 'qzDS': java.lang.NullPointerException [See nested exception: java.lang.NullPointerException]
via Stack Overflow by h3nrik
, 1 year ago
Failed to obtain DB connection from data source 'qrtzds': java.sql.SQLException: Could not retrieve datasource via JNDI url 'java:comp/env/jdbc/myDB' java.sql.SQLException: Data source is closed [See nested exception: java.sql.SQLException: Could not retrieve datasource via JNDI url 'java:comp/env/jdbc/myDB' java.sql.SQLException: Data source is closed]
via Terracotta Project Issue Tracker by Tobias Oberlies, 1 year ago
Failed to obtain DB connection from data source 'DefaultDB': java.sql.SQLException: Could not retrieve datasource via JNDI url 'java:comp/env/jdbc/DefaultDB' <exception details from driver>. [See nested exception: java.sql.SQLException: Could not retrieve datasource via JNDI url 'java:comp/env/jdbc/DefaultDB' <exception details from driver>.]
org.quartz.JobPersistenceException: Failed to obtain DB connection from data source 'schedulerDS': java.sql.SQLException: Could not retrieve datasource via JNDI url 'jdbc/schedulerDS' javax.naming.NameNotFoundException: While trying to lookup 'jdbc.schedulerDS' didn't find subcontext 'jdbc'. Resolved '' [See nested exception: java.sql.SQLException: Could not retrieve datasource via JNDI url 'jdbc/schedulerDS' javax.naming.NameNotFoundException: While trying to lookup 'jdbc.schedulerDS' didn't find subcontext 'jdbc'. Resolved '']
at org.quartz.impl.jdbcjobstore.JobStoreSupport.getConnection(JobStoreSupport.java:636)
at org.quartz.impl.jdbcjobstore.JobStoreTX.getNonManagedTXConnection(JobStoreTX.java:72)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.doRecoverMisfires(JobStoreSupport.java:3011)
at org.quartz.impl.jdbcjobstore.JobStoreSupport$MisfireHandler.manage(JobStoreSupport.java:3789)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

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