glassfish
  1. glassfish
  2. GLASSFISH-19022

undeploying an osgi bundle having HK2 services result in stale service entries in the runtime

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: hk2
    • Labels:
      None

      Description

      We use "deploy --type osgi <osgi-enabled-hk2-bundle>.jar" which helps to install an osgi bundle as application in GlassFish
      This also exposes the hk2 services in the bundle.
      When uninstalling the bundle (or via "undeploy appName") that has hk2 services, these services are still listed in the runtime.
      eg: habitat.getAllByContract(..) will also list the HK2 Service implementation that was actually removed as part of uninstalling the bundle.
      Accessing such an entry results in class-not-found-exceptions.

      This seems to be a bug. Once GlassFish is restarted, the stale entries are removed as expected.

        Activity

        Hide
        mtaube added a comment -

        This should be fixed at revision 56196, I've verified it on the hk2 side with a pax-based integration test.

        Show
        mtaube added a comment - This should be fixed at revision 56196, I've verified it on the hk2 side with a pax-based integration test.

          People

          • Assignee:
            mtaube
            Reporter:
            Jagadish
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: