Quartz datasource startup error on JBoss EAP
Issue
-
On JBoss application server startup, the following error is seen in the log:
ERROR [org.quartz.utils.JNDIConnectionProvider] Error looking up datasource: QuartzDS not bound javax.naming.NameNotFoundException: QuartzDS not bound at org.jnp.server.NamingServer.getBinding(NamingServer.java:581) at org.jnp.server.NamingServer.getBinding(NamingServer.java:589) at org.jnp.server.NamingServer.getObject(NamingServer.java:595) at org.jnp.server.NamingServer.lookup(NamingServer.java:342) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627) at javax.naming.InitialContext.lookup(InitialContext.java:351) at org.quartz.utils.JNDIConnectionProvider.init(JNDIConnectionProvider.java:127) at org.quartz.utils.JNDIConnectionProvider.<init>(JNDIConnectionProvider.java:103) at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:742) at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1152) at org.jboss.resource.adapter.quartz.inflow.QuartzResourceAdapter.start(QuartzResourceAdapter.java:57) at org.jboss.resource.deployment.RARDeployment.startService(RARDeployment.java:109) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) at org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.java:124) at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:417)
-
Datasource configured for Quartz service cannot be found at startup time
- When application invokes the Quartz service all works fine
- Quartz configured with system property -Dorg.quartz.properties and has datasources configured with org.quartz.jobStore.dataSource property
Environment
- JBoss Enterprise Application Platform (EAP)
- 4.x
- 5.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.