Utilizzo di quartz su jboss

22 Nov '17, 10:39 AM
1,722 Views
No Forum Badges

Buongiorno,

 

ho modificato lo store dei job non più settate in memory ma in database perchè abbiamo 2 server jboss in cluster, ho creato le tabelle sul db ma quando provo a deployare il mio war va in errore e non scrive nessun dato sulle tabelle di quartz. E' necessaria una configurazione particolare su jboss o sul database? 

 

Grazie

 
x 0
Follow
Answer Answer at this question and get points!
No Forum Badges

allego anche parte del log di errore dopo aver inserito nel war le librerie ojdbc6.jar, c3p0-0.9.1.1.jar e aver aggiunto alla libreria di quartz la versione: 

 

11:12:21,965 INFO  [org.hibernate.impl.SessionFactoryObjectFactory] (ServerService Thread Pool -- 67) Not binding factory to JNDI, no JNDI name configured

11:12:23,804 ERROR [com.webratio.rtx.core.DefaultRTXManager] (ServerService Thread Pool -- 67) []Unable to start service _job.manager: com.webratio.rtx.RTXException: com.webratio.rtx.RTXException: Unable to init scheduler '_job.scheduler'

at com.webratio.rtx.jobs.QuartzJobManagerService.start(QuartzJobManagerService.java:186) [com.webratio.rtx.extras.jar:]

at com.webratio.rtx.core.DefaultRTXManager.start(DefaultRTXManager.java:218) [com.webratio.rtx.jar:]

at com.webratio.rtx.application.AbstractApplication.start(AbstractApplication.java:236) [com.webratio.rtx.jar:]

at com.webratio.rtx.application.AbstractApplication.notifyCanStart(AbstractApplication.java:225) [com.webratio.rtx.jar:]

at com.webratio.struts.RTXInitPlugIn.init(RTXInitPlugIn.java:145) [com.webratio.struts.jar:]

at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:871) [struts-core.jar:1.3.10]

at org.apache.struts.action.ActionServlet.init(ActionServlet.java:359) [struts-core.jar:1.3.10]

at com.webratio.struts.servlets.WRActionServlet.init(WRActionServlet.java:61) [com.webratio.struts.jar:]

at javax.servlet.GenericServlet.init(GenericServlet.java:242) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1112) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]

at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3593) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]

at org.apache.catalina.core.StandardContext.start(StandardContext.java:3802) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]

at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.7.Final-redhat-3.jar:7.5.7.Final-redhat-3]

at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.7.Final-redhat-3.jar:7.5.7.Final-redhat-3]

at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.7.Final-redhat-3.jar:7.5.7.Final-redhat-3]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_21]

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_21]

at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_21]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_21]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_21]

at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]

at org.jboss.threads.JBossThread.run(JBossThread.java:122)

Caused by: com.webratio.rtx.RTXException: Unable to init scheduler '_job.scheduler'

at com.webratio.rtx.jobs.QuartzJobManagerService.doInitSchedulers(QuartzJobManagerService.java:238) [com.webratio.rtx.extras.jar:]

at com.webratio.rtx.jobs.QuartzJobManagerService.initSchedulers(QuartzJobManagerService.java:199) [com.webratio.rtx.extras.jar:]

at com.webratio.rtx.jobs.QuartzJobManagerService.start(QuartzJobManagerService.java:164) [com.webratio.rtx.extras.jar:]

... 22 more

Caused by: java.lang.NullPointerException

at com.webratio.rtx.jobs.QuartzJobManagerService.initScheduler(QuartzJobManagerService.java:280) [com.webratio.rtx.extras.jar:]

at com.webratio.rtx.jobs.QuartzJobManagerService.doInitSchedulers(QuartzJobManagerService.java:231) [com.webratio.rtx.extras.jar:]

... 24 more

 
x 0
Answer at this question and get points!