从 Spring 3 迁移到 Spring 4 - org.springframework.scheduling.quartz.CronTriggerBean
我正在尝试从春季3.0.5迁移到春季4.1.X。
Spring 3的类被命名为“org.springframework.scheduling.quartz.CronTriggerBean”
但是Spring 4不包括这个类名。
[5/28/15 20:10:16:798 EDT] 00000092 ClassPathXmlA W org.springframework.context.support.AbstractApplicationContext __refresh 在上下文初始化期间遇到的异常 - 取消刷新尝试 org.springframework.beans.factory.CannotLoadBeanClassCeption: Can't find class [org.springframework.scheduling.quartz.CronTriggerBean] for bean,在类路径资源中定义名称为“beanIdName”[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:1328)
我尝试过像“弹簧支持”这样的替代方案,它具有相同的类。但是没有运气。
拿到那个罐子后,它给出了关于石英的错误
[5/28/15 15:37:02:665 EDT] 00000006e SystemOut O ERROR (?:?) - java.lang.Exception: Bean from SpringUtils.getSpringBean(hostnameVerifierSetter) 错误消息: 无法初始化组定义。组资源名称 [classpath*:beanRefFactory.xml], factory key [beanContext];嵌套异常是 org.springframework.beans.factory.BeanCreationException: 在 URL 中定义名称“beanContext” 创建 bean 时出错 [file:/C:/Program%20Files%20(x86)/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/cellName/Project.ear/configurations/beanRefFactory.xml]: 通过构造函数实例化失败;nested exception is org.springframework.beans.BeanInstantiationException: Failed to instanceiate [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception;nested exception is java.lang.NoClassDefFoundError: org.quartz.impl.JobDetailImpl