Announcement Announcement Module
Collapse
No announcement yet.
Exception Quartz threadpool not specified. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exception Quartz threadpool not specified.

    When I run a very simple standalone app using Quartz, I'm getting an exception. Weird thing is it was running fine the day before; so, its probably a silly mistake.
    Environment: Spring rc2 on Java 1.4, run via Eclipse IDE.

    <bean id="schedulerFactory" class="org.springframework.scheduling.quartz.Sched ulerFactoryBean">
    <property name="triggers">
    <list>
    <ref local="trigger"/>
    </list>
    </property>
    </bean>
    20060809-08:47:32 ERROR Application - Failed to load Spring contexts. Error creating bean with name 'schedulerFactory' defined in URL [file:/C:/work/GlobalCheckSum/properties/applicationContext.xml]: Invocation of init method failed; nested exception is org.quartz.SchedulerException: ThreadPool class not specified.
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'schedulerFactory' defined in URL [file:/C:/work/GlobalCheckSum/properties/applicationContext.xml]: Invocation of init method failed; nested exception is org.quartz.SchedulerException: ThreadPool class not specified.
    Caused by:
    org.quartz.SchedulerException: ThreadPool class not specified.
    at org.quartz.impl.StdSchedulerFactory.instantiate(St dSchedulerFactory.java:596)
    at org.quartz.impl.StdSchedulerFactory.getScheduler(S tdSchedulerFactory.java:1152)
    at org.springframework.scheduling.quartz.SchedulerFac toryBean.createScheduler(SchedulerFactoryBean.java :645)
    at org.springframework.scheduling.quartz.SchedulerFac toryBean.afterPropertiesSet(SchedulerFactoryBean.j ava:551)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:908)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:875)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:396)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 40)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:132)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:237)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:153)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:248)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:337)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:92)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:77)
    at josef.service.conf.Application.main(Application.ja va:66)

  • #2
    Doh! It was a silly error. I had created a quartz.properties for later storage of schedule properties. It was blank. Apparently, Quartz uses that file if found for configuration.

    -- Thanks.

    Comment

    Working...
    X