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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.2.2
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Bugzilla Id:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: