commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Steitz (JIRA)" <>
Subject [jira] Commented: (DBCP-68) [dbcp] Commons Collection dependency version clash when using Commons DBCP via Maven2
Date Sat, 16 Sep 2006 20:13:23 GMT
    [ ] 
Phil Steitz commented on DBCP-68:

Updating to collections 3.1 may cause dependency problems for some users.  Per discussion
on commons-dev, I would prefer to bundle the required classes in their 2.1 versions.  There
are two classes required - o.a.c.collections.LRUMap and o.a.c.collections.SequencedHashMap
and only one dbcp class that depends on them - o.a.c.dbcp.datasources.SharedPoolDataSource.
  The collections classes have been deprecated, but still exist, in Collections 3.x.  I propose
that we take the versions from the collections 2.1 source and include them with package scope
in o.a.c.dbcp.datasources, then remove collections dependency altogether.

> [dbcp] Commons Collection dependency version clash when using Commons DBCP via Maven2
> -------------------------------------------------------------------------------------
>                 Key: DBCP-68
>                 URL:
>             Project: Commons Dbcp
>          Issue Type: Bug
>    Affects Versions: 1.2 Final
>         Environment: Operating System: All
> Platform: All
>            Reporter: Christoph Cenowa
>             Fix For: 1.2.2
> 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>(
> Since Commons Collections is incorporated into most Commons Components please
> update the dependency within Commons DBCP to Commons Collections 3.1 if possible.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message