Quartz + spring 定时任务常见错误总结
2013-09-16 20:15
489 查看
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即可
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即可
相关文章推荐
- Quartz + spring 定时任务常见错误总结
- Quartz + spring 定时任务常见错误总结
- Quartz + spring 定时任务常见错误总结
- atititt.java定时任务框架选型Spring Quartz 注解总结
- atititt.java定时任务框架选型Spring Quartz 注解总结
- spring quartz 实现定时任务及常见问题
- atititt.java定时任务框架选型Spring Quartz 注解总结
- Java问题:Quartz,Hibernate,Spring,Tomcat中定时任务无故停止,没有错误
- Spring整合quartz2.2.3总结,quartz动态定时任务,Quartz定时任务集群配置
- atititt.java定时任务框架选型Spring Quartz 注解总结
- spring+quartz实现定时任务遇到问题总结(bean无法注入)
- Quartz在Spring中动态设置cronExpression研究(spring设置动态定时任务)
- 定时任务二:spring整合quartz
- spring多个定时任务quartz配置
- spring-boot+quartz实现web页面增删改定时任务
- Spring与Quartz的整合实现定时任务调度
- 定时任务quartz与spring的集成
- spring boot环境下使用quartz设置定时任务
- spring多个定时任务quartz配置
- Spring+Quartz实现定时任务的配置方法--Cron表达式解释