【发布时间】:2014-05-09 16:43:19
【问题描述】:
当我将我的 EAR 文件发布到 Websphere 时,我收到了四个不同 bean 的错误:
[5/9/14 8:54:44:485 CDT] 00000018 DefaultListab I org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@63706370: defining beans [updateMPETask,processingNotifyerTask,calendarTask1,calendarTask2,calendarTask3,calendarTask4,calendarTask5,calendarTask6,calendarTask7,datasetNotifyerTask,updateMPEJobDetail,processingNotifyerJobDetail,calendarJob1Detail,calendarJob2Detail,calendarJob3Detail,calendarJob4Detail,calendarJob5Detail,calendarJob6Detail,calendarJob7Detail,datasetNotifyerJobDetail,updateMPENotifyerCronTrigger,processingNotifyerCronTrigger,calendar1CronTrigger,calendar2CronTrigger,calendar3CronTrigger,calendar4CronTrigger,calendar5CronTrigger,calendar6CronTrigger,calendar7CronTrigger,datasetNotifyerCronTrigger,quartzScheduleFactory]; root of factory hierarchy
[5/9/14 8:54:44:485 CDT] 00000018 ContextLoader E org.springframework.web.context.ContextLoader initWebApplicationContext Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'updateABCJobDetail' defined in ServletContext resource [/WEB-INF/classes/resources/dvl/ictt-servlet.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org/apache/commons/collections/SetUtils.orderedSet(Ljava/util/Set;)Ljava/util/Set;
Caused by: java.lang.NoSuchMethodError: org/apache/commons/collections/SetUtils.orderedSet(Ljava/util/Set;)Ljava/util/Set;
at org.quartz.JobDetail.<init>(JobDetail.java:85)
在寻找解决方案时,我发现很多论坛都说这可能是由于 commons-collections.jar 的重复或过时版本造成的。
所以我从 Classpath 中删除了文件 commons-collections.jar 并粘贴了从 http://mvnrepository.com/artifact/commons-collections/commons-collections/3.2.1 下载的 commons-collections-3.2.1.jar。任何线索都会被接受。
我的类路径有这些文件:
【问题讨论】:
-
你看到了吗stackoverflow.com/questions/544514/…。它建议更新石英版本。