-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 6.0
-
Component/s: Core
-
Tags:
-
Sprint:Sprint RepoTeam 7.1-2
If quartz is configured in cluster mode, it fails to look up its datasource:
12:17:00,383 ERROR [JNDIConnectionProvider] Error looking up datasource: Name [jdbc/nxquartz_no_tx] is not bound in this Context. Unable to find [jdbc]. javax.naming.NameNotFoundException: Name [jdbc/nxquartz_no_tx] is not bound in this Context. Unable to find [jdbc]. at org.apache.naming.NamingContext.lookup(NamingContext.java:819) at org.apache.naming.NamingContext.lookup(NamingContext.java:153) at org.apache.naming.NamingContext.lookup(NamingContext.java:830) at org.apache.naming.NamingContext.lookup(NamingContext.java:153) at org.apache.naming.NamingContext.lookup(NamingContext.java:830) at org.apache.naming.NamingContext.lookup(NamingContext.java:167) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:156) at javax.naming.InitialContext.lookup(InitialContext.java:411) at org.quartz.utils.JNDIConnectionProvider.init(JNDIConnectionProvider.java:124) at org.quartz.utils.JNDIConnectionProvider.<init>(JNDIConnectionProvider.java:102) at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:969) at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1509) at org.nuxeo.ecm.core.scheduler.SchedulerServiceImpl.setupScheduler(SchedulerServiceImpl.java:91) at org.nuxeo.ecm.core.scheduler.SchedulerServiceImpl.applicationStarted(SchedulerServiceImpl.java:131)
We should contribute a custom connection provider, which is possible (see PROP_CONNECTION_PROVIDER_CLASS in org.quartz.impl.StdSchedulerFactory.
- depends on
-
NXP-13688 JDBC connection should be obtained through a managed datasource
- Resolved