[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
ThreadPool class not specified  XML
Forum Index -> Quartz
Author Message
filihc

neo

Joined: 01/19/2011 11:48:37
Messages: 3
Offline

Hi

I am new in this skill and my appWeb send this trace
Code:
 ERROR [com.interp.wimslive.servlet.LanzaQuartzScheduler] - Error al inicializar el scheduller
 org.quartz.SchedulerException: ThreadPool class not specified. 
 	at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:789)
 	at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1465)
 


My servlet
Code:
     @Override
     public void init(ServletConfig config) {
         log.info("------- Initializing quartzScheduler -------------------");
 
 
         try {
             // First we must get a reference to a scheduler
             SchedulerFactory sf = new StdSchedulerFactory();
 
             sched = sf.getScheduler();
 
             log.info("------- Initialization Complete --------");
 
             log.info("------- Scheduling Jobs ----------------");
 
             // jobs can be scheduled before sched.start() has been called
 
             // job 1 will run every 20 seconds
             JobDetail job = new JobDetail("job1", "group1", SeguimientoSiniestrosJob.class);
             CronTrigger trigger = new CronTrigger("trigger1", "group1", "job1", "group1", INTERVALO_QUARTZ_SCHEDULER);
             sched.addJob(job, true);
             Date ft = sched.scheduleJob(trigger);
             log.info(job.getFullName() + " has been scheduled to run at: " + ft + " and repeat based on expression: " + trigger.getCronExpression());
             log.info("------- Starting Scheduler ----------------");
             // All of the jobs have been added to the scheduler, but none of the
             // jobs
             // will run until the scheduler has been started
             sched.start();
             log.info("------- Started Scheduler -----------------");
 
         } catch (ParseException e) {
             log.error("Error parsear la fecha", e);
         } catch (JobExecutionException e) {
             log.error("Error en la ejecución del job", e);
         } catch (SchedulerException e) {
             log.error("Error al inicializar el scheduller", e);
         }
 
     }
 

Please any help me!
teck

seraphim
[Avatar]
Joined: 05/24/2006 15:03:25
Messages: 1103
Offline

Which quartz version is this by the way?

Wherever your quartz.properties is getting loaded from it likely has no definition for the thread pool class. It might depend on your version, but in 1.8.x at least there should be some logging that indicates the source of properties. Something like this:

2011-01-19 12:52:07,562 INFO [org.quartz.impl.StdSchedulerFactory] - Quartz scheduler 'DefaultQuartzScheduler' initialized from an externally provided properties instance.

Hopefully yours will refer to file location someplace and that is what needs updating. The "standard" thread pool is this:

org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool 



Tim Eck (terracotta engineer)
 
Forum Index -> Quartz
Go to:   
Powered by JForum 2.1.7 © JForum Team