Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5938

DM not working with latest Felix Framework

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Dependency Manager
    • None

    Description

      When using the latest Felix framework, DM is not resolved:

      org.osgi.framework.BundleException: Unable to resolve org.apache.felix.dependencymanager [5](R 5.0): missing requirement [org.apache.felix.dependencymanager [5](R 5.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.framework)(version>=1.8.0)(!(version>=1.9.0))) Unresolved requirements: [[org.apache.felix.dependencymanager [5](R 5.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.framework)(version>=1.8.0)(!(version>=1.9.0)))]

      Surprisingly, bnd generates an odd import range and excludes the 1.9 version.
      Fixing the DM bnd like this resolves the issue:

      Import-Package: !org.junit,!org.mockito.*,org.osgi.framework;version="[1.8, 2)",*
      

      Attachments

        Activity

          People

            pderop Pierre De Rop
            pderop Pierre De Rop
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: