glassfish
  1. glassfish
  2. GLASSFISH-18888

"Already bootstrapped" exception while updating glassfish.jar

    Details

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

      Description

      Do the following:

      Step 1:
      Edit felix/conf/config.properties to make system.bundle export org.glassfish.embeddable packages. This is a key step. This is what causes the exception, because GlassFishRuntime is loaded by system bundle, hence GlassFishMainActivator can't bootstrap it without shutting down and currently in GlassFishMainActivator.stop() does not call gfr.shutdown().

      Step 2:
      java -cp /space/ss141213/WS/gf/v3/publish/glassfish3/glassfish/modules/simple-glassfish-api.jar:bin/felix.jar org.apache.felix.main.Main
      -> start file:/space/ss141213/WS/gf/v3/publish/glassfish3/glassfish/modules/glassfish.jar
      ...
      -> update 5

      You shall see:
      Completed shutdown of Log manager service
      [#|2012-07-11T21:46:48.989+0530|INFO|44.0|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=10;_ThreadName=Gogo shell;|Shutdown procedure finished|#]

      Provisioning options are

      {glassfish.osgi.auto.start=file:/space/ss141213/WS/gf/v3/publish/web/glassfish3/glassfish/modules/endorsed/ file:/space/ss141213/WS/gf/v3/publish/web/glassfish3/glassfish/modules/osgi-adapter.jar file:/space/ss141213/WS/gf/v3/publish/web/glassfish3/glassfish/modules/osgi-resource-locator.jar file:/space/ss141213/WS/gf/v3/publish/web/glassfish3/glassfish/modules/org.apache.felix.configadmin.jar file:/space/ss141213/WS/gf/v3/publish/web/glassfish3/glassfish/modules/org.apache.felix.fileinstall.jar file:/space/ss141213/WS/gf/v3/publish/web/glassfish3/glassfish/modules/autostart/ , glassfish.osgi.auto.install=file:/space/ss141213/WS/gf/v3/publish/web/glassfish3/glassfish/modules/endorsed/ file:/space/ss141213/WS/gf/v3/publish/web/glassfish3/glassfish/modules/ file:/space/ss141213/WS/gf/v3/publish/web/glassfish3/glassfish/modules/autostart/ }

      org.glassfish.embeddable.GlassFishException: Already bootstrapped

        Activity

        Hide
        Sanjeeb Sahoo added a comment -

        Log Message:
        ------------
        GLASSFISH-18888: "Already bootstrapped" exception while updating glassfish.jar
        GLASSFISH-18889: Register GlassFish as an OSGi service only after GlassFish is started
        GLASSFISH-18891: Use decorator pattern for various GFRImpls and GFimpls

        Revisions:
        ----------
        55086

        Modified Paths:
        ---------------
        trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/GlassFishMainActivator.java
        trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/OSGiGlassFishImpl.java
        trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/OSGiGlassFishRuntimeBuilder.java
        trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/OSGiGlassFishRuntime.java
        trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/EmbeddedOSGiGlassFishRuntime.java
        trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/EmbeddedOSGiGlassFishRuntimeBuilder.java
        trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/EmbeddedOSGiGlassFishImpl.java

        Show
        Sanjeeb Sahoo added a comment - Log Message: ------------ GLASSFISH-18888 : "Already bootstrapped" exception while updating glassfish.jar GLASSFISH-18889 : Register GlassFish as an OSGi service only after GlassFish is started GLASSFISH-18891 : Use decorator pattern for various GFRImpls and GFimpls Revisions: ---------- 55086 Modified Paths: --------------- trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/GlassFishMainActivator.java trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/OSGiGlassFishImpl.java trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/OSGiGlassFishRuntimeBuilder.java trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/OSGiGlassFishRuntime.java trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/EmbeddedOSGiGlassFishRuntime.java trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/EmbeddedOSGiGlassFishRuntimeBuilder.java trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/EmbeddedOSGiGlassFishImpl.java

          People

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

            Dates

            • Created:
              Updated:
              Resolved: