使用Spring2.0的任务调度报错:
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean
class [org.springframework.scheduling.quartz.JobDetailBean]: Constructor threw exception;
nested exception is java.lang.NoSuchMethodError: orderedSet
Caused by: java.lang.NoSuchMethodError: orderedSet
这是因为commons-collections的版本太低导致的,换成3.*版本的即可。
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean
class [org.springframework.scheduling.quartz.JobDetailBean]: Constructor threw exception;
nested exception is java.lang.NoSuchMethodError: orderedSet
Caused by: java.lang.NoSuchMethodError: orderedSet
这是因为commons-collections的版本太低导致的,换成3.*版本的即可。