glassfish
  1. glassfish
  2. GLASSFISH-8578

Unable to do gmbal registration in monitoring

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: V3
    • Fix Version/s: V3
    • Component/s: build_system
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      8,578

      Description

      Tried using the gmbal API in v3, however, a few folks saw the following problem
      during start-domain:

      GlassFish-v3 start-domain is failing with the following stack trace.

      INFO: ERROR: Error starting
      file:/space/v3-workspace-2/v3/distributions/glassfish/target/stage/glassfishv3/glassfish/modules/osgi-main.jar
      (org.osgi.framework.BundleException: Activator start error in bundle
      com.sun.enterprise.osgi-adapter [16].)
      18 Jun, 2009 1:57:08 PM SEVERE: java.lang.NoSuchMethodError:
      org.glassfish.gmbal.ManagedObjectManager.stripPackagePrefix()V
      18 Jun, 2009 1:57:08 PM SEVERE: at
      org.glassfish.admin.monitor.StatsProviderManagerDelegateImpl.register(StatsProviderManagerDelegateImpl.java:111)
      18 Jun, 2009 1:57:08 PM SEVERE: at
      org.glassfish.probe.provider.StatsProviderManager.setStatsProviderManagerDelegate(StatsProviderManager.java:83)
      18 Jun, 2009 1:57:08 PM SEVERE: at
      org.glassfish.admin.monitor.StatsProviderManagerBootstrap.postConstruct(StatsProviderManagerBootstrap.java:36)
      18 Jun, 2009 1:57:08 PM SEVERE: at
      com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:170)
      18 Jun, 2009 1:57:08 PM SEVERE: at
      com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:90)
      18 Jun, 2009 1:57:08 PM SEVERE: at
      java.security.AccessController.doPrivileged(Native Method)
      18 Jun, 2009 1:57:08 PM SEVERE: at
      com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:87)
      18 Jun, 2009 1:57:08 PM SEVERE: at
      com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
      18 Jun, 2009 1:57:08 PM SEVERE: at
      com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
      18 Jun, 2009 1:57:08 PM SEVERE: at
      com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
      18 Jun, 2009 1:57:08 PM SEVERE: at
      com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
      18 Jun, 2009 1:57:08 PM SEVERE: at
      com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:218)
      18 Jun, 2009 1:57:08 PM SEVERE: at
      com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:115)
      18 Jun, 2009 1:57:08 PM SEVERE: at
      com.sun.enterprise.module.bootstrap.Main.launch(Main.java:433)
      18 Jun, 2009 1:57:08 PM SEVERE: at
      com.sun.enterprise.module.bootstrap.Main.launch(Main.java:377)
      18 Jun, 2009 1:57:08 PM SEVERE: at
      org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:120)
      18 Jun, 2009 1:57:08 PM SEVERE: at
      org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
      18 Jun, 2009 1:57:08 PM SEVERE: at
      org.apache.felix.framework.Felix.startBundle(Felix.java:1458)
      18 Jun, 2009 1:57:08 PM SEVERE: at
      org.apache.felix.framework.BundleImpl.start(BundleImpl.java:779)
      18 Jun, 2009 1:57:08 PM SEVERE: at
      org.jvnet.hk2.osgimain.Main.start(Main.java:104)
      18 Jun, 2009 1:57:08 PM SEVERE: at
      org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
      18 Jun, 2009 1:57:08 PM SEVERE: at
      org.apache.felix.framework.Felix.startBundle(Felix.java:1458)
      18 Jun, 2009 1:57:08 PM SEVERE: at
      org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984)
      18 Jun, 2009 1:57:08 PM SEVERE: at
      org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
      18 Jun, 2009 1:57:08 PM SEVERE: at java.lang.Thread.run(Thread.java:619)

      It seems that "org.glassfish.gmbal.ManagedObjectManager" has two different
      implementations with webservices-osgi.jar and gmbal.jar, and during runtime the
      interface is looked up from one jar and implemetation from another. The two
      interfaces are not having the same signature, hence the required method could
      not be found.

      v3 is using the latest gmbal 3.0.0-b004.

      webservices team should either use the same version 3.0.0-b004, or remove gmbal
      from webservices-osgi.jar.

      This impacts monitoring and not able to do gmbal registration.

        Activity

        Hide
        janey added a comment -

        Thank you Bhakti for committing the fix:

        Author: bhaktimehta
        Date: 2009-06-23 21:21:52+0000
        New Revision: 28103

        Modified:
        trunk/v3/pom.xml
        trunk/v3/tests/quicklook/build.xml
        trunk/v3/tests/quicklook/gfproject/build-impl.xml
        trunk/v3/tests/quicklook/testng_gd.xml
        trunk/v3/tests/quicklook/wsit/JaxwsFromWsdl/build.xml
        trunk/v3/webservices/jsr109-
        impl/src/main/java/org/glassfish/webservices/WebServicesDeployer.java

        Log:
        Integration of new metro to fix issue 8578 commented out QL for now as no form of bootclasspath or
        sysproperty is being accepted by testng and that test does not even run in standalone mode

        Modified: trunk/v3/pom.xml
        Url: https://glassfish-svn.dev.java.net/source/browse/glassfish-svn/trunk/v3/pom.xml?
        view=diff&rev=28103&p1=trunk/v3/pom.xml&p2=trunk/v3/pom.xml&r1=28102&r2=28103
        ===============================================================
        ===============
        — trunk/v3/pom.xml (original)
        +++ trunk/v3/pom.xml 2009-06-23 21:21:52+0000
        @@ -142,8 +142,8 @@
        <glassfish-corba.version>3.0.0-b020</glassfish-corba.version>
        <uc-pkg-client.version>1.111-30.2164</uc-pkg-client.version>
        <uc-pkg-bootstrap.version>1.111-30.2164</uc-pkg-bootstrap.version>

        • <webservices.version>2.0-b10</webservices.version>
        • <jaxb.version>2.2-promoted-b26</jaxb.version>
          + <webservices.version>2.0-b12</webservices.version>
          + <jaxb.version>2.2-promoted-b36</jaxb.version>
          <javax-persistence-api.version>2.0.0-M3</javax-persistence-api.version>
          <eclipselink.version>2.0.0-M3</eclipselink.version>
          <dbschema.version>RELEASE60</dbschema.version>

        Modified: trunk/v3/tests/quicklook/build.xml
        Url: https://glassfish-svn.dev.java.net/source/browse/glassfish-
        svn/trunk/v3/tests/quicklook/build.xml?
        view=diff&rev=28103&p1=trunk/v3/tests/quicklook/build.xml&p2=trunk/v3/tests/quicklook/build.x
        ml&r1=28102&r2=28103
        ===============================================================
        ===============
        — trunk/v3/tests/quicklook/build.xml (original)
        +++ trunk/v3/tests/quicklook/build.xml 2009-06-23 21:21:52+0000
        @@ -134,7 +134,7 @@
        <ant dir="ejb/remoteview" target="build-deploy"/>
        <ant dir="ejb/singleton" target="build-deploy"/>
        <ant dir="ejb/cmp" target="build-deploy"/>

        • <ant dir="wsit/JaxwsFromWsdl" target="build-deploy"/>
          + <!-<ant dir="wsit/JaxwsFromWsdl" target="build-deploy"/>->
          </target>

        <target name="undeploy">
        @@ -158,7 +158,7 @@
        <ant dir="ejb/singleton" target="undeploy"/>
        <ant dir="ejb/remoteview" target="undeploy"/>
        <ant dir="ejb/cmp" target="undeploy"/>

        • <ant dir="wsit/JaxwsFromWsdl" target="undeploy"/>
          + <!-<ant dir="wsit/JaxwsFromWsdl" target="undeploy"/>->
          <!-- ant dir="wsit" target="undeploy"/ -->
          </target>

        Modified: trunk/v3/tests/quicklook/gfproject/build-impl.xml
        Url: https://glassfish-svn.dev.java.net/source/browse/glassfish-
        svn/trunk/v3/tests/quicklook/gfproject/build-impl.xml?
        view=diff&rev=28103&p1=trunk/v3/tests/quicklook/gfproject/build-
        impl.xml&p2=trunk/v3/tests/quicklook/gfproject/build-impl.xml&r1=28102&r2=28103
        ===============================================================
        ===============
        — trunk/v3/tests/quicklook/gfproject/build-impl.xml (original)
        +++ trunk/v3/tests/quicklook/gfproject/build-impl.xml 2009-06-23 21:21:52+0000
        @@ -292,6 +292,7 @@
        <classfileset dir="$

        {test.class.output}

        " includes="**/$

        {testng.testclient}.class"/>
        <jvmarg value="-Dhttp.host=${glassfish.http.host}" />
        <jvmarg value="-Dhttp.port=${glassfish.http.port}" />
        +
        </testng>
        </target>

        @@ -305,6 +306,7 @@
        <xmlfileset dir="." includes="testng.xml"/>
        <jvmarg value="-Dhttp.host=${glassfish.http.host}" />
        <jvmarg value="-Dhttp.port=${glassfish.http.port}" />
        +
        </testng>
        </target>

        @@ -343,7 +345,10 @@
        <classfileset dir="${build.classes.home}" includes="**/${testng.testclient}

        .class"/>
        <jvmarg value="-Dhttp.host=$

        {glassfish.http.host}" />
        <jvmarg value="-Dhttp.port=${glassfish.http.port}" />
        + <jvmarg value="-Djava.endorsed.dirs=${glassfish.home}/modules/endorsed" />
        <bootclasspath classpathref="boot.class.path"/>
        +<sysproperty key="-Djava.endorsed.dirs" value="${glassfish.home}/modules/endorsed"/>
        +

        </testng>
        </target>
        @@ -358,7 +363,10 @@
        <xmlfileset dir="." includes="testng.xml"/>
        <jvmarg value="-Dhttp.host=${glassfish.http.host}

        " />
        <jvmarg value="-Dhttp.port=$

        {glassfish.http.port}

        " />
        + <jvmarg value="-Djava.endorsed.dirs=$

        {glassfish.home}/modules/endorsed" />
        <bootclasspath classpathref="boot.class.path"/>
        +<sysproperty key="-Djava.endorsed.dirs" value="${glassfish.home}

        /modules/endorsed"/>
        +

        </testng>
        </target>

        Modified: trunk/v3/tests/quicklook/testng_gd.xml
        Url: https://glassfish-svn.dev.java.net/source/browse/glassfish-
        svn/trunk/v3/tests/quicklook/testng_gd.xml?
        view=diff&rev=28103&p1=trunk/v3/tests/quicklook/testng_gd.xml&p2=trunk/v3/tests/quicklook/tes
        tng_gd.xml&r1=28102&r2=28103
        ===============================================================
        ===============
        — trunk/v3/tests/quicklook/testng_gd.xml (original)
        +++ trunk/v3/tests/quicklook/testng_gd.xml 2009-06-23 21:21:52+0000
        @@ -133,11 +133,11 @@
        <class name="test.admin.WebtierTests"/>
        </classes>
        </test>

        • <test name="wsit_jaxws_tests">
          + <!--<test name="wsit_jaxws_tests">
          <classes>
          <class name="jaxwsfromwsdl.client.JaxwsFromWsdlTestNG"/>
          </classes>
        • </test>
          + </test>-->

        </suite>

        Modified: trunk/v3/tests/quicklook/wsit/JaxwsFromWsdl/build.xml
        Url: https://glassfish-svn.dev.java.net/source/browse/glassfish-
        svn/trunk/v3/tests/quicklook/wsit/JaxwsFromWsdl/build.xml?
        view=diff&rev=28103&p1=trunk/v3/tests/quicklook/wsit/JaxwsFromWsdl/build.xml&p2=trunk/v3/tes
        ts/quicklook/wsit/JaxwsFromWsdl/build.xml&r1=28102&r2=28103
        ===============================================================
        ===============
        — trunk/v3/tests/quicklook/wsit/JaxwsFromWsdl/build.xml (original)
        +++ trunk/v3/tests/quicklook/wsit/JaxwsFromWsdl/build.xml 2009-06-23 21:21:52+0000
        @@ -155,6 +155,8 @@
        <pathelement location="$

        {build.classes.home}

        "/>
        <pathelement location="$

        {basedir}

        /etc"/>
        </classpath>
        + <sysproperty key="-Djava.endorsed.dirs" value="$

        {glassfish.home}

        /modules/endorsed"/>
        +
        </java>
        </target>

        Modified: trunk/v3/webservices/jsr109-
        impl/src/main/java/org/glassfish/webservices/WebServicesDeployer.java
        Url: https://glassfish-svn.dev.java.net/source/browse/glassfish-svn/trunk/v3/webservices/jsr109-
        impl/src/main/java/org/glassfish/webservices/WebServicesDeployer.java?
        view=diff&rev=28103&p1=trunk/v3/webservices/jsr109-
        impl/src/main/java/org/glassfish/webservices/WebServicesDeployer.java&p2=trunk/v3/webservices/js
        r109-impl/src/main/java/org/glassfish/webservices/WebServicesDeployer.java&r1=28102&r2=28103
        ===============================================================
        ===============
        — trunk/v3/webservices/jsr109-
        impl/src/main/java/org/glassfish/webservices/WebServicesDeployer.java (original)
        +++ trunk/v3/webservices/jsr109-
        impl/src/main/java/org/glassfish/webservices/WebServicesDeployer.java 2009-06-23
        21:21:52+0000
        @@ -288,9 +288,6 @@
        jaxwsEndPtFound = true;

        • QName servicename = endpoint.getServiceName();
          -
          -
          Thread.currentThread().setContextClassLoader(dc.getClassLoader()) ;

        } else {
        @@ -330,7 +327,7 @@
        *

        • @return the meta data for this Deployer
          */
        • @Override
          +
          public MetaData getMetaData()
          Unknown macro: { return new MetaData(false, null, new Class[] {Application.class}); }
        Show
        janey added a comment - Thank you Bhakti for committing the fix: Author: bhaktimehta Date: 2009-06-23 21:21:52+0000 New Revision: 28103 Modified: trunk/v3/pom.xml trunk/v3/tests/quicklook/build.xml trunk/v3/tests/quicklook/gfproject/build-impl.xml trunk/v3/tests/quicklook/testng_gd.xml trunk/v3/tests/quicklook/wsit/JaxwsFromWsdl/build.xml trunk/v3/webservices/jsr109- impl/src/main/java/org/glassfish/webservices/WebServicesDeployer.java Log: Integration of new metro to fix issue 8578 commented out QL for now as no form of bootclasspath or sysproperty is being accepted by testng and that test does not even run in standalone mode Modified: trunk/v3/pom.xml Url: https://glassfish-svn.dev.java.net/source/browse/glassfish-svn/trunk/v3/pom.xml? view=diff&rev=28103&p1=trunk/v3/pom.xml&p2=trunk/v3/pom.xml&r1=28102&r2=28103 =============================================================== =============== — trunk/v3/pom.xml (original) +++ trunk/v3/pom.xml 2009-06-23 21:21:52+0000 @@ -142,8 +142,8 @@ <glassfish-corba.version>3.0.0-b020</glassfish-corba.version> <uc-pkg-client.version>1.111-30.2164</uc-pkg-client.version> <uc-pkg-bootstrap.version>1.111-30.2164</uc-pkg-bootstrap.version> <webservices.version>2.0-b10</webservices.version> <jaxb.version>2.2-promoted-b26</jaxb.version> + <webservices.version>2.0-b12</webservices.version> + <jaxb.version>2.2-promoted-b36</jaxb.version> <javax-persistence-api.version>2.0.0-M3</javax-persistence-api.version> <eclipselink.version>2.0.0-M3</eclipselink.version> <dbschema.version>RELEASE60</dbschema.version> Modified: trunk/v3/tests/quicklook/build.xml Url: https://glassfish-svn.dev.java.net/source/browse/glassfish- svn/trunk/v3/tests/quicklook/build.xml? view=diff&rev=28103&p1=trunk/v3/tests/quicklook/build.xml&p2=trunk/v3/tests/quicklook/build.x ml&r1=28102&r2=28103 =============================================================== =============== — trunk/v3/tests/quicklook/build.xml (original) +++ trunk/v3/tests/quicklook/build.xml 2009-06-23 21:21:52+0000 @@ -134,7 +134,7 @@ <ant dir="ejb/remoteview" target="build-deploy"/> <ant dir="ejb/singleton" target="build-deploy"/> <ant dir="ejb/cmp" target="build-deploy"/> <ant dir="wsit/JaxwsFromWsdl" target="build-deploy"/> + <!- <ant dir="wsit/JaxwsFromWsdl" target="build-deploy"/> -> </target> <target name="undeploy"> @@ -158,7 +158,7 @@ <ant dir="ejb/singleton" target="undeploy"/> <ant dir="ejb/remoteview" target="undeploy"/> <ant dir="ejb/cmp" target="undeploy"/> <ant dir="wsit/JaxwsFromWsdl" target="undeploy"/> + <!- <ant dir="wsit/JaxwsFromWsdl" target="undeploy"/> -> <!-- ant dir="wsit" target="undeploy"/ --> </target> Modified: trunk/v3/tests/quicklook/gfproject/build-impl.xml Url: https://glassfish-svn.dev.java.net/source/browse/glassfish- svn/trunk/v3/tests/quicklook/gfproject/build-impl.xml? view=diff&rev=28103&p1=trunk/v3/tests/quicklook/gfproject/build- impl.xml&p2=trunk/v3/tests/quicklook/gfproject/build-impl.xml&r1=28102&r2=28103 =============================================================== =============== — trunk/v3/tests/quicklook/gfproject/build-impl.xml (original) +++ trunk/v3/tests/quicklook/gfproject/build-impl.xml 2009-06-23 21:21:52+0000 @@ -292,6 +292,7 @@ <classfileset dir="$ {test.class.output} " includes="**/$ {testng.testclient}.class"/> <jvmarg value="-Dhttp.host=${glassfish.http.host}" /> <jvmarg value="-Dhttp.port=${glassfish.http.port}" /> + </testng> </target> @@ -305,6 +306,7 @@ <xmlfileset dir="." includes="testng.xml"/> <jvmarg value="-Dhttp.host=${glassfish.http.host}" /> <jvmarg value="-Dhttp.port=${glassfish.http.port}" /> + </testng> </target> @@ -343,7 +345,10 @@ <classfileset dir="${build.classes.home}" includes="**/${testng.testclient} .class"/> <jvmarg value="-Dhttp.host=$ {glassfish.http.host}" /> <jvmarg value="-Dhttp.port=${glassfish.http.port}" /> + <jvmarg value="-Djava.endorsed.dirs=${glassfish.home}/modules/endorsed" /> <bootclasspath classpathref="boot.class.path"/> +<sysproperty key="-Djava.endorsed.dirs" value="${glassfish.home}/modules/endorsed"/> + </testng> </target> @@ -358,7 +363,10 @@ <xmlfileset dir="." includes="testng.xml"/> <jvmarg value="-Dhttp.host=${glassfish.http.host} " /> <jvmarg value="-Dhttp.port=$ {glassfish.http.port} " /> + <jvmarg value="-Djava.endorsed.dirs=$ {glassfish.home}/modules/endorsed" /> <bootclasspath classpathref="boot.class.path"/> +<sysproperty key="-Djava.endorsed.dirs" value="${glassfish.home} /modules/endorsed"/> + </testng> </target> Modified: trunk/v3/tests/quicklook/testng_gd.xml Url: https://glassfish-svn.dev.java.net/source/browse/glassfish- svn/trunk/v3/tests/quicklook/testng_gd.xml? view=diff&rev=28103&p1=trunk/v3/tests/quicklook/testng_gd.xml&p2=trunk/v3/tests/quicklook/tes tng_gd.xml&r1=28102&r2=28103 =============================================================== =============== — trunk/v3/tests/quicklook/testng_gd.xml (original) +++ trunk/v3/tests/quicklook/testng_gd.xml 2009-06-23 21:21:52+0000 @@ -133,11 +133,11 @@ <class name="test.admin.WebtierTests"/> </classes> </test> <test name="wsit_jaxws_tests"> + <!--<test name="wsit_jaxws_tests"> <classes> <class name="jaxwsfromwsdl.client.JaxwsFromWsdlTestNG"/> </classes> </test> + </test>--> </suite> Modified: trunk/v3/tests/quicklook/wsit/JaxwsFromWsdl/build.xml Url: https://glassfish-svn.dev.java.net/source/browse/glassfish- svn/trunk/v3/tests/quicklook/wsit/JaxwsFromWsdl/build.xml? view=diff&rev=28103&p1=trunk/v3/tests/quicklook/wsit/JaxwsFromWsdl/build.xml&p2=trunk/v3/tes ts/quicklook/wsit/JaxwsFromWsdl/build.xml&r1=28102&r2=28103 =============================================================== =============== — trunk/v3/tests/quicklook/wsit/JaxwsFromWsdl/build.xml (original) +++ trunk/v3/tests/quicklook/wsit/JaxwsFromWsdl/build.xml 2009-06-23 21:21:52+0000 @@ -155,6 +155,8 @@ <pathelement location="$ {build.classes.home} "/> <pathelement location="$ {basedir} /etc"/> </classpath> + <sysproperty key="-Djava.endorsed.dirs" value="$ {glassfish.home} /modules/endorsed"/> + </java> </target> Modified: trunk/v3/webservices/jsr109- impl/src/main/java/org/glassfish/webservices/WebServicesDeployer.java Url: https://glassfish-svn.dev.java.net/source/browse/glassfish-svn/trunk/v3/webservices/jsr109- impl/src/main/java/org/glassfish/webservices/WebServicesDeployer.java? view=diff&rev=28103&p1=trunk/v3/webservices/jsr109- impl/src/main/java/org/glassfish/webservices/WebServicesDeployer.java&p2=trunk/v3/webservices/js r109-impl/src/main/java/org/glassfish/webservices/WebServicesDeployer.java&r1=28102&r2=28103 =============================================================== =============== — trunk/v3/webservices/jsr109- impl/src/main/java/org/glassfish/webservices/WebServicesDeployer.java (original) +++ trunk/v3/webservices/jsr109- impl/src/main/java/org/glassfish/webservices/WebServicesDeployer.java 2009-06-23 21:21:52+0000 @@ -288,9 +288,6 @@ jaxwsEndPtFound = true; QName servicename = endpoint.getServiceName(); - - Thread.currentThread().setContextClassLoader(dc.getClassLoader()) ; } else { @@ -330,7 +327,7 @@ * @return the meta data for this Deployer */ @Override + public MetaData getMetaData() Unknown macro: { return new MetaData(false, null, new Class[] {Application.class}); }

          People

          • Assignee:
            janey
            Reporter:
            Jennifer Chou
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: