dev@glassfish.java.net

Re: V3 start-domain failing for the latest build

From: Sreenivas Munnangi <Sreenivas.Munnangi_at_Sun.COM>
Date: Thu, 18 Jun 2009 13:43:13 -0700

Jane Young wrote:
> According to Ken in a separate e-mail thread, somewhere some code is
> using a previous version of Gmbal and the suspicion is in
> webservices-osgi.jar.
> Bhakti, can you verify that the webservices is compiling with the
> latest version of Gmbal? I saw your forwarded e-mail that
> webservices team is working on delivering a webservices-osgi artifact
> w/o gmbal packages. Please make this a priority since it's
> impacting monitoring work in GlassFish.
Jane, thanks for addressing this issue.
>
> Thanks,
> Jane
>
>
> Snjezana Sevo-Zenzerovic wrote:
>> Jane,
>>
>> excluding gmbal in metro package pom won't help since it won't remove
>> gmbal classes from already built webservices-osgi.jar. This needs to
>> be fixed in its source, i.e. webservices-osgi.jar build/assembly.
>>
>> Thanks,
>>
>> Snjezana
>>
>>
>> Jane Young wrote:
>>
>>> Why is gmbal packages (org/glassfish/gmbal) bundled in both
>>> webservices-osgi.jar and gmbal.jar?
>>> Snjezana, do we need to exclude gmbal in v3/packager/metro?
>>>
>>>
>>> Jennifer Chou wrote:
>>>
>>>> I commented out the change completely. Can you update
>>>> admin/monitor, and see if it works for you?
>>>>
>>>> Jagadish Prasath Ramu wrote:
>>>>
>>>>> Yes, I am also seeing the issue.
>>>>>
>>>>> Thanks,
>>>>> -Jagadish
>>>>>
>>>>>
>>>>> On Thu, 2009-06-18 at 16:02 +0100, Jennifer Chou wrote:
>>>>>
>>>>>
>>>>>> I'm not sure why I don't see the error (quicklook on hudson looks
>>>>>> ok too). Did anybody else see this problem?
>>>>>>
>>>>>> Commenting out the next line createRoot would fix the immediate
>>>>>> issue for you. (There are no other calls on ManagedObjectManager)
>>>>>>
>>>>>> mohit gupta wrote:
>>>>>>
>>>>>>> Hi Jennifer,
>>>>>>>
>>>>>>> I did the following steps :
>>>>>>> svn update - it updated to revision 27971.
>>>>>>> mvn -U clean install
>>>>>>> cd distributions/glassfish/target/stage/glassfishv3/glassfish/bin
>>>>>>> ./asadmin start-domain --verbose
>>>>>>>
>>>>>>> and I get the following error with stripPackagePrefix() commented :
>>>>>>>
>>>>>>> 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 7:30:50 PM SEVERE: java.lang.NoSuchMethodError:
>>>>>>> org.glassfish.gmbal.ManagedObjectManager.createRoot(Ljava/lang/Object;)Lorg/glassfish/gmbal/GmbalMBean;
>>>>>>>
>>>>>>> 18 Jun, 2009 7:30:50 PM SEVERE: at
>>>>>>> org.glassfish.admin.monitor.StatsProviderManagerDelegateImpl.register(StatsProviderManagerDelegateImpl.java:112)
>>>>>>>
>>>>>>> 18 Jun, 2009 7:30:50 PM ......
>>>>>>>
>>>>>>> Thanks
>>>>>>> Mohit
>>>>>>>
>>>>>>>
>>>>>>> Jennifer Chou wrote:
>>>>>>>
>>>>>>>> I still couldn't see the error. I have a fresh checkout and
>>>>>>>> did mvn -U clean install and start-domain works. quicklook
>>>>>>>> passes for both glassfish and web.
>>>>>>>> (This is with the stripPackagePrefix() uncommented)
>>>>>>>>
>>>>>>>> Jennifer Chou wrote:
>>>>>>>>
>>>>>>>>> Hi Mohit,
>>>>>>>>>
>>>>>>>>> I've commented out the line causing the error for now. Can
>>>>>>>>> you update admin/monitor and see if it works for you?
>>>>>>>>> I'm having some other issues with the glassfish distribution
>>>>>>>>> so haven't been able to reproduce the error yet.
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Jennifer
>>>>>>>>>
>>>>>>>>> Mohit Gupta wrote:
>>>>>>>>>
>>>>>>>>>> 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.
>>>>>>>>>>
>>>>>>>>>> Thanks
>>>>>>>>>> Mohit
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>
>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>>
>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>