When I publish my EAR file to Websphere I am getting this error with four diferent beans:
[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)
Searching for solutions, I found a lot of forums saying that it might be caused in reason of duplicated or outdated version of commons-collections.jar.
So I remove from Classpath the file commons-collections.jar
and pasted commons-collections-3.2.1.jar
which I downloaded from http://mvnrepository.com/artifact/commons-collections/commons-collections/3.2.1. Any clue will be very accepted.
My classpath has these files: