I'm trying to migrate from spring 3.0.5 to spring 4.1.X .

Spring 3 has Class named as "org.springframework.scheduling.quartz.CronTriggerBean"

But Spring 4 doesn't include this class name.

[// ::: EDT]  ClassPathXmlA W org.springframework.context.support.AbstractApplicationContext __refresh Exception encountered during context initialization - cancelling refresh attempt org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.scheduling.quartz.CronTriggerBean] for bean with name 'beanIdName' defined in class path resource [config/spring/WxsCacheContext.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.scheduling.quartz.CronTriggerBean at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:)

I have tried alternative like "spring-support" which has the same class. But no luck.

After getting that jar, it is giving errors about the quartz

// ::: EDT] 0000006e SystemOut O ERROR (?:?) - java.lang.Exception: Bean from SpringUtils.getSpringBean(hostnameVerifierSetter) error message: Unable to initialize group definition. Group resource name [classpath*:beanRefFactory.xml], factory key [beanContext]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'beanContext' defined in URL [file:/C:/Program%20Files%(x86)/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/cellName/Project.ear/configurations/beanRefFactory.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org.quartz.impl.JobDetailImpl

2 Answers

 From Spring 3.1+, Change the Class names for the CronTriggerFactoryBean & JobDetailFactoryBean as like below
org.springframework.scheduling.quartz.CronTriggerBean
org.springframework.scheduling.quartz.CronTriggerFactoryBean
org.springframework.scheduling.quartz.JobDetailBean
org.springframework.scheduling.quartz.JobDetailFactoryBean

最新文章

  1. 代码审计之SQL注入
  2. javascript中怎样区分元素和节点?
  3. Texture Atlas
  4. action 方法的访问
  5. DOM基本概念和操作
  6. LDA-math-MCMC 和 Gibbs Sampling
  7. 节点的创建--对比jQuery与JavaScript 方法
  8. APUE《UNIX 环境高级编程》读后感
  9. python学习第一课要点记录
  10. LED限流电阻的大小计算
  11. [React Testing] Element types with Shallow Rendering
  12. WCF从零学习之WCF概述(一)
  13. Vue中transition和animation的使用
  14. 推荐一个免费的在线IDE和终端
  15. Mac git 上传到 github
  16. 手把手教你从零实现Linux misc设备驱动一(基于友善之臂4412开发板)
  17. 【Unity】7.1 Input类的方法和变量
  18. 系统有专门画图的api
  19. python函数 变量 递归
  20. PAT 1067 试密码

热门文章

  1. NodeJS收发GET和POST请求
  2. C#IIS网站应用程序池启动回收停止 .
  3. mysql存储过程基础示例
  4. Dij二级最短路
  5. maven学习(一)(转)
  6. [Android] 配置安卓模拟器,使得dex文件不被优化成odex
  7. ar的主流算法
  8. 数据库们~MySQL~MongoDB~Redis
  9. ansible(3)
  10. win安装mysql