Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-465

OSGI issue - configuration depends on Jexl 1.0 which does not have OSGI release

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7
    • 1.8
    • None
    • None

    Description

      I updated to use commons-configuration 1.7 (from 1.6) and am running into the following resolution error under Eclipse Equinox OSGi framework.

      An Import-Package could not be resolved. Caused by missing constraint in bundle <org.apache.commons.configuration_1.7.0>
      constraint: <Import-Package: org.apache.commons.jexl; version="0.0.0">

      According to the Import-Package header in 1.7's MANIFEST.MF, commons-configuration now has a required dependency on org.apache.commons.jexl. Problem is, there is no OSGi enabled version of Apache Commons jexl that exports this package.

      In jexl 2.0 the packages were renamed and org.apache.commons.jexl2 is exported. The 1.x codeline, although using org.apache.commons.jexl, does not have the appropriate MANIFEST.MF headers to be used as an OSGi bundle.

      As such, you cannot consume commons-configuration 1.7 in an OSGi environment.

      Attachments

        Activity

          People

            Unassigned Unassigned
            richmayfield Rich Mayfield
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: