Hi,
I feel that the problem I'm having must have the simpliest solution... there just might be something I've overlooked, but I just can't figure it out. I'm trying to create some simple scheduling with quartz but I just seem to get this exception:
[code]
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.scheduling.quartz.SchedulerFa ctoryBean' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Initialization of bean failed; nested exception is org.quartz.SchedulerConfigException: Failure occured during job recovery.
[code]
the quarz configuration in dispatcher servlet is this:
[code]
<!-- Quartz configuration -->
<bean id="exampleBusinessObject" class="org.my.own.package.MailSenderTest">
<property name="mailCreator" ref="mailCreator" />
</bean>
<bean id="jobDetail" class="org.springframework.scheduling.quartz.Metho dInvokingJobDetailFactoryBean">
<property name="targetObject" ref="exampleBusinessObject"/>
<property name="targetMethod" value="doIt" />
<property name="concurrent" value="false"/>
</bean>
<bean id="simpleTrigger" class="org.springframework.scheduling.quartz.Simpl eTriggerBean">
<!-- see the example of method invoking job above -->
<property name="jobDetail" ref="jobDetail"/>
<!-- 10 seconds -->
<property name="startDelay" value="10000"/>
<!-- repeat every 50 seconds -->
<property name="repeatInterval" value="50000"/>
</bean>
<bean class="org.springframework.scheduling.quartz.Sched ulerFactoryBean">
<property name="triggers">
<list>
<ref bean="simpleTrigger"/>
</list>
</property>
</bean>
[/code]
I'd be most pleased if someone could help me on this problem.


Reply With Quote