Uploaded image for project: 'Commons DBCP'
  1. Commons DBCP
  2. DBCP-68

[dbcp] Commons Collection dependency version clash when using Commons DBCP via Maven2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2
    • 1.2.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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            cenowa@makdata.de Christoph Cenowa
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: