Jeremy Stein - Brain

« »

java.lang.NoClassDefFoundError: org/apache/commons/collections/map/ReferenceMap

I upgraded my Maven 2 pom.xml to use Tomahawk 1.1.3. I got this error after deploying with MyEclipse:
java.lang.NoClassDefFoundError: org/apache/commons/collections/map/ReferenceMap

This is because I still have common-collections 2.1. Tomahawk 1.1.3 needs 3.1. The eclipse plugin for Maven 2 had incorrectly created the .classpath. I fixed it by removing a dependency that I didn’t need anyhow (common-dbcp) which was forcing the wrong version on common-collections. I might have also been able to fix it with an exclude; I didn’t try.

November 29, 2006 No Comments.

No Comments

Be the first to comment!

Leave a Reply

Your email address will not be published. Required fields are marked *

Why ask?

« »