I'm having a problem scheduling jobs via Spring and quartz, using Tomcat5 as my container.
The exception thrown (during application start) is:
My XML doesn't appear to be very complex, and my job does appear to have a trigger:Context initialization failed
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.scheduling.quartz.SchedulerFa ctoryBean' defined in ServletContext resource [/WEB-INF/jobs-context.xml]: Initialization of bean failed; nested exception is org.quartz.SchedulerException: Jobs added with no trigger must be durable.
org.quartz.SchedulerException: Jobs added with no trigger must be durable.
Am I missing something simple? Please let me know if there is an obvious issue, or whether I've run up against a known bug.<beans>
<bean id="updateLibraryJob" class="org.springframework.scheduling.quartz.Metho dInvokingJobDetailFactoryBean">
<property name="targetObject" ref="libraryService"/>
<property name="targetMethod" value="updateLibrary"/>
<property name="concurrent" value="false"/>
</bean>
<bean id="updateLibTrigger" class="org.springframework.scheduling.quartz.CronT riggerBean">
<property name="jobDetail">
<ref bean="updateLibraryJob"/>
</property>
<property name="cronExpression" value="0 0 4 * * ?"/>
</bean>
<!-- ===================== The actual scheudler ===================== -->
<bean class="org.springframework.scheduling.quartz.Sched ulerFactoryBean">
<property name="triggers">
<list>
<ref bean="updateLibTrigger"/>
</list>
</property>
</bean>
</beans>
~KeithC


Reply With Quote