Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2
-
None
-
Operating System: All
Platform: All
-
39502
Description
When using Maven2 to incorporate Commons DBCP 1.2.1 into your project a
transient dependency on Commons Collections 2.1 is added. This will clash with
other Commons Components like Commons Configuration 1.2 for example that depend
on Commons Collections 3.1. Upon adding Commons DBCP 1.2.1 to your project the
existing transient dependency on Commons Collections 3.1 gets changed into
Commons Collections 2.1. This will result in runtime errors like the following:
java.lang.NoClassDefFoundError: org/apache/commons/collections/map/LinkedMap
at
org.apache.commons.configuration.BaseConfiguration.<init>(BaseConfiguration.java:53)
Since Commons Collections is incorporated into most Commons Components please
update the dependency within Commons DBCP to Commons Collections 3.1 if possible.