Libraries Conflict for Quartz

匆匆过客 提交于 2019-12-04 19:36:27

A java.lang.NoSuchMethodException always indicates that the class file on the runtime classpath is not the same version as the class file that was on the compile-time classpath (if the method had been missing during compilation, the compile would have failed.)

Specifically, the offending method in this case is: java.util.Set org.apache.commons.collections.SetUtils.orderedSet(java.util.Set)

You have a different version of commons-collections in your production environment than you do in your development environment.

This is maybe caused because you are using a commons-collections.jar version which has not that method. To solve this,you need to upload this library (version 3.2.1 is the latest version available) and subsitute all the old commons-collections.jar that you have in your project for the new one (i recomend to make a Search in your Project folder to know all the places in which this library is,because it is surprisingly in lots of places,at least in my case...)

Hope this helps all people with this horrible trouble! It took me a whole day to fix it! Good luck buddies :)

Latest quartz versions do not depend on commons collections library, so try to use newer version. In my case switching from quartz 1.6.0 to 1.6.6 fixed the problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!