700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > Quartz + spring 定时任务常见错误总结

Quartz + spring 定时任务常见错误总结

时间:2020-10-01 03:17:59

相关推荐

Quartz + spring 定时任务常见错误总结

1.配了下spring-biz.xml,总是报错,

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'methodInvokingJobDetail' defined in class path resource [config/spring/spring-biz.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError:org.quartz.JobExecutionException

Caused by:

java.lang.NoClassDefFoundError:org.quartz.JobExecutionException

网上说只有spring不行,要增加quartz-all-1.6.0.jar

2.

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'methodInvokingJobDetail' defined in class path resource [config/spring/spring-biz.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/collections/SetUtils

Caused by:

java.lang.NoClassDefFoundError:org/apache/commons/collections/SetUtils

这个要增加commons-collections-3.1.jar

3.

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.scheduling.quartz.SchedulerFactoryBean' defined in class path resource [config/spring/spring-biz.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/transaction/UserTransaction

Caused by:

java.lang.NoClassDefFoundError: javax/transaction/UserTransaction

增加jta.jar即可

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。