org.quartz.SchedulerException - ThreadPool class not specified.

1 minute read


<P><FONT COLOR=”#0000FF” SIZE=2 FACE=”Arial”>duplicate quartz.properties files on the classpath</FONT> </P> <P><FONT COLOR=”#0000FF” SIZE=2 FACE=”Arial”>quartz.jar has a ‘quartz.properties’ files which defines this content.</FONT>
<FONT COLOR=”#0000FF” SIZE=2 FACE=”Arial”> </FONT>
<FONT COLOR=”#0000FF” SIZE=2 FACE=”Arial”># Default Properties file for use by StdSchedulerFactory</FONT>
<FONT COLOR=”#0000FF” SIZE=2 FACE=”Arial”># to create a Quartz Scheduler Instance, if a different</FONT>
<FONT COLOR=”#0000FF” SIZE=2 FACE=”Arial”># properties file is not explicitly specified.</FONT>
<FONT COLOR=”#0000FF” SIZE=2 FACE=”Arial”>#</FONT> </P> <P><FONT COLOR=”#0000FF” SIZE=2 FACE=”Arial”>org.quartz.scheduler.instanceName = DefaultQuartzScheduler</FONT>
<FONT COLOR=”#0000FF” SIZE=2 FACE=”Arial”>org.quartz.scheduler.rmi.export = false</FONT>
<FONT COLOR=”#0000FF” SIZE=2 FACE=”Arial”>org.quartz.scheduler.rmi.proxy = false</FONT>
<FONT COLOR=”#0000FF” SIZE=2 FACE=”Arial”>org.quartz.scheduler.wrapJobExecutionInUserTransaction = false</FONT> </P> <P><FONT COLOR=”#0000FF” SIZE=2 FACE=”Arial”>org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool</FONT>
<FONT COLOR=”#0000FF” SIZE=2 FACE=”Arial”>org.quartz.threadPool.threadCount = 10</FONT>
<FONT COLOR=”#0000FF” SIZE=2 FACE=”Arial”>org.quartz.threadPool.threadPriority = 5</FONT>
<FONT COLOR=”#0000FF” SIZE=2 FACE=”Arial”>org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread = true</FONT> </P> <P><FONT COLOR=”#0000FF” SIZE=2 FACE=”Arial”>org.quartz.jobStore.misfireThreshold = 60000</FONT> </P> <P><FONT COLOR=”#0000FF” SIZE=2 FACE=”Arial”>org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore</FONT> </P> <P><FONT COLOR=”#0000FF” SIZE=2 FACE=”Arial”>If a application calling quartz wants to save the cron job details in a property file, they should</FONT>
<FONT COLOR=”#0000FF” SIZE=2 FACE=”Arial”>avoid the naming the property file ‘quartz’, ‘[appname]-quartz.properties would be appropriate.</FONT> </P> <UL> <P><FONT SIZE=1 FACE=”Tahoma”>_________________ </FONT>
<FONT SIZE=1 FACE=”Tahoma”>From:  </FONT> <FONT SIZE=1 FACE=”Tahoma”>O’Connell, Paul  </FONT>
<FONT SIZE=1 FACE=”Tahoma”>Sent:  </FONT> <FONT SIZE=1 FACE=”Tahoma”>09 May 2008 14:04</FONT>
<FONT SIZE=1 FACE=”Tahoma”>To:    </FONT> <FONT SIZE=1 FACE=”Tahoma”>O’Connell, Paul</FONT>
<FONT SIZE=1 FACE=”Tahoma”>Subject:       </FONT> <FONT SIZE=1 FACE=”Tahoma”>org.quartz.SchedulerException: ThreadPool class not specified. </FONT> </P>
<P><FONT COLOR=”#000000” SIZE=2 FACE=”Courier New”>[RCMS] INFO [main] DefaultValidatorFactory.setValidationConfigLocations(78)
Loading validation configurations from [ServletContext resource [/WEB-INF/validation.xml],ServletContext resource [/WEB-INF/validator-rules.xml]]</FONT></P> <P><FONT COLOR=”#000000” SIZE=2 FACE=”Courier New”>[RCMS] ERROR [main] ContextLoader.initWebApplicationContext(204) Context initialization failed</FONT>
<FONT COLOR="#000080" SIZE=2 FACE="Courier New">org.springframework.beans.factory.BeanCreationException</FONT><FONT COLOR=”#000000” SIZE=2 FACE=”Courier New”>: Error creating bean with name ‘org.springframework.scheduling.quartz.SchedulerFactoryBean’ defined in ServletContext resource [/WEB-INF/applicationContext-service.xml]: Invocation of init method failed; nested exception is</FONT> <FONT COLOR="#000080" SIZE=2 FACE="Courier New">org.quartz.SchedulerException</FONT><FONT COLOR=”#000000” SIZE=2 FACE=”Courier New”>: ThreadPool class not specified.</FONT> </P> <P><FONT COLOR=”#000000” SIZE=2 FACE=”Courier New”>Caused by:</FONT>
<FONT COLOR="#000080" SIZE=2 FACE="Courier New">org.quartz.SchedulerException</FONT><FONT COLOR=”#000000” SIZE=2 FACE=”Courier New”>: ThreadPool class not specified.</FONT>
        <FONT COLOR=”#000000” SIZE=2 FACE=”Courier New”>at org.quartz.impl.StdSchedulerFactory.instantiate(</FONT><FONT COLOR="#000080" SIZE=2 FACE="Courier New">StdSchedulerFactory.java:746</FONT><FONT COLOR=”#000000” SIZE=2 FACE=”Courier New”>)</FONT>
        <FONT COLOR=”#000000” SIZE=2 FACE=”Courier New”>at org.quartz.impl.StdSchedulerFactory.getScheduler(</FONT><FONT COLOR="#000080" SIZE=2 FACE="Courier New">StdSchedulerFactory.java:1355</FONT><FONT COLOR=”#000000” SIZE=2 FACE=”Courier New”>)</FONT>
        <FONT COLOR=”#000000” SIZE=2 FACE=”Courier New”>at org.springframework.scheduling.quartz.SchedulerFactoryBean.createScheduler(</FONT><FONT COLOR="#000080" SIZE=2 FACE="Courier New">SchedulerFactoryBean.java:687</FONT><FONT COLOR=”#000000” SIZE=2 FACE=”Courier New”>)</FONT> </P> </UL>

Categories:

Updated:

Leave a Comment