Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-5087 Use OSGi for the Geronimo classloading model.
  3. GERONIMO-4972

Nested child configurations from ears don't work well with osgi

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • deployment, osgi
    • Security Level: public (Regular issues)
    • None

    Description

      Right now we are generating "nested bundles" inside plugins for ear files with web modules. These don't quite work. One code problem is that the SimpleConifgurationManager tries to start the child bundles before the configuration for the parent/containing bundle is registered, so a getConfiguration call to find the parent config fails. This is probably easy to fix.

      However a bigger issue is that there's no way to tell the osgi framework about the nested bundle. Three possible solutions:

      1. stop having nested bundles, just use one bundle per ear. This is a 1-line change in AbstractWebModuleBuilder so I expect to use this until we can actually solve the problem

      2. modify the pax mvn url handler to deal with urls to nested bundles inside the car.

      3. modify the ear deployer to create more than one bundle from an ear.

      Attachments

        Activity

          People

            djencks David Jencks
            djencks David Jencks
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: