glassfish
  1. glassfish
  2. GLASSFISH-16179

Issues with discovery of RuntimeBuilder when using GFR.bootstrap in OSGi environment

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1.1_dev
    • Component/s: OSGi
    • Labels:
      None

      Description

      While trying out various scenarios of embedding GlassFish in OSGi environment, I stumbled upon this issue. When the launcher classloader has simple-glassfish-api.jar and osgi framework is configured with same properties as regular glassfish, then I found that GlassFishRuntime.bootstrap() fails to find RuntimeBuilders. It happens because we don't configure system package to export org.glassfish.embeddable.spi package. Similarly, glassfish.jar bundle does not import this spi package as well.

      This needs to be fixed in 3.1 branch if that branch opens.

        Activity

        Hide
        Sanjeeb Sahoo added a comment -

        Sending core/bootstrap/osgi.bundle
        Sending osgi-platforms/equinox/src/main/resources/glassfish/osgi/equinox/configuration/config.ini
        Sending osgi-platforms/felix/src/main/resources/glassfish/osgi/felix/conf/config.properties
        Transmitting file data ...
        Committed revision 45446.

        Show
        Sanjeeb Sahoo added a comment - Sending core/bootstrap/osgi.bundle Sending osgi-platforms/equinox/src/main/resources/glassfish/osgi/equinox/configuration/config.ini Sending osgi-platforms/felix/src/main/resources/glassfish/osgi/felix/conf/config.properties Transmitting file data ... Committed revision 45446.

          People

          • Assignee:
            Sanjeeb Sahoo
            Reporter:
            Sanjeeb Sahoo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: