Uploaded image for project: 'CXF Distributed OSGi (Retired)'
  1. CXF Distributed OSGi (Retired)
  2. DOSGI-208

OSGi compendium bundle installed by feature causes problems

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.0
    • 1.6.0
    • None
    • None
    • Karaf 2.3.3

    • Unknown

    Description

      The DOSGi feature installs the OSGi compendium bundle. This bundle exports lots of OSGi apis, and when installed in Karaf it causes various failures - for example ActiveMQ fails to start (see AMQ-4777), some blueprint errors etc. This is probably due to duplicate exports of some of these apis. Limiting the exported OSGi packages, i.e. not installing the entire compendium bundle, fixes the issues.

      There are several possible fixes:
      1. Include the OSGi enterprise bundle instead of the compendium. This bundle exports fewer apis, but still more than DOSGi needs, and so can theoretically cause the same sort of issues.
      2. Have one of the core DOSGi bundles embed+import+export only the required OSGi apis via an appropriate maven bundle plugin configuration.
      3. Create a new DOSGi bundle with nothing but the required OSGi exports as in #2.

      After a little discussion (http://irclogs.dankulp.com/logs/irclogger_log/karaf?date=2013-10-11,Fri) it seems #3 is the preferred option.

      Attachments

        Activity

          People

            amichai Amichai Rothman
            amichai Amichai Rothman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: