질문: Spring 설정 Quartz 예 가 잘못 되 었 습 니 다. 보 세 요. 감사합니다.
spring 의 설정 은 다음 과 같 습 니 다:
<bean id="emailJobBean" class="org.springframework.scheduling.quartz.JobDetailBean">
<property name="jobClass" value="EmailJobBean"/>
</bean>
<bean id="simpleTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerBean">
<property name="jobDetail" ref="emailJobBean" />
<property name="startDelay" value="2000" />
<property name="repeatInterval" value="60000" />
</bean>
<bean name="quartzScheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref bean="simpleTrigger"/>
</list>
</property>
</bean>
스케줄 링 된 bean
public class EmailJobBean extends QuartzJobBean {
protected void executeInternal(JobExecutionContext arg0)
throws JobExecutionException {
System.out.println("Quartz !!!");
}
}
시작 후 오류 유지
14:29:38,11882 ERROR [org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:205)] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quartzScheduler' defined in ServletContext resource [/WEB-INF/classes/spring-quartz.xml]: Invocation of init method failed; nested exception is org.quartz.SchedulerConfigException: Failure occured during job recovery. [See nested exception: org.quartz.impl.jdbcjobstore.LockException: Failure obtaining db row lock: ORA-00942: table or view does not exist
비슷 한 문제 에 부 딪 힌 친구 가 있 는 지 모 르 겠 습 니 다.여러분 지적 해 주세요.
환경 은 resin 2.1.16, jdk 1.4.2, spring 2.0.1, quartz 1.6.0 을 사용 합 니 다.