Quartz and Hibernate
Posted on October 25, 2008 by Brian Tajuddin
I recently put Quartz into a project with Hibernate and ran into a strange problem. Every time I'd try to create a new JobDetail, I would get this exception:
java.lang.NoSuchMethodError: org.apache.commons.collections.SetUtils.orderedSet (Ljava/util/Set;)Ljava/util/Set;
I had the right version of Jarkarta Commons Collections in my classpath. I couldn't figure out what was going on for quite some time. I eventually realized that too many JAR files from Hibernate were being pulled in. Hibernate ships with a file called checkstyle-all.jar which is not used at runtime. It runs checkstyle (obviously). However, this includes all of checkstyle's dependencies, including an old version of commons collections. Once I removed it from the classpath (or at least got the real commons JAR earlier in the classpath) everything worked fine.
Posted by Florian Rosenberg on November 24, 2008 at 05:52 AM PST #