dev@glassfish.java.net

Re: rg.osgi.framework.BundleException: Activator start error in bundle

From: Sreekanth <Sreekanth.Manga_at_Sun.COM>
Date: Wed, 22 Jul 2009 10:29:21 +0530

Hi Richard,

Here are the steps to reproduce:

   1. Get the latest promoted glassfish v3.
   2. Download the latest metro nightly
      build(metro-2_0-installer-nightly.jar
      <https://metro.dev.java.net/files/documents/7107/139453/metro-2_0-installer-nightly.jar>)
      from here[1].
   3. Run this command "java -jar metro-2_0-installer-nightly.jar" to
      extract the contents of jar
   4. Now you will have a folder by name metro
   5. locate the folder "for_v3" in that directory.It contains the
      latest osgi jar files for v3.
   6. Now replace the jaxb-osgi.jar and webservices-osgi.jar in
      GFv3/modules with the jar files in metro/for_v3 folder.
   7. Also replace the webservices-api-osgi.jar in Gfv3/modules/endorsed
      dir with the one in metro/for_v3 folder.
   8. Now start the domain.You will find the exception I reported.

[1]
https://metro.dev.java.net/servlets/ProjectDocumentList?folderID=10314&expandFolder=10314&folderID=10314

Thanks,
Sreekanth

Richard S. Hall wrote:
> That looks odd.
>
> I won't venture a guess at this point, but I can probably take a look
> at it if you can send me precise steps to reproduce.
>
> Thanks.
>
> -> richard
>
> On 7/21/09 1:29 AM, Sreekanth wrote:
>> Hi,
>>
>> Can some one tell me why the gfv3 domain doesn't come up after I
>> replaced the jar files :
>> modules/webservices-osgi.jar,modules/endorsed/webservices-api-osgi.jar
>> and modules/jaxb-osgi.jar in glassfish v3 with latest jar files from
>> metro nightly builds.(The intention is I want to test the latest
>> metro bits).
>>
>> I would like to know why replacement of latest osgi-jars doesn't work.
>>
>>
>>
>> sreekanth_at_sreekanth-laptop:/space/Sreekanth/servers/glassfishv3/glassfish$
>> asadmin start-domain domain1
>>
>> Domain (domain1) did not respond in 90 seconds. It means it is still
>> coming up
>> or it has failed to come up. Check server.log for details.
>> sreekanth_at_sreekanth-laptop:/space/Sreekanth/servers/glassfishv3/glassfish$
>> asadmin list-domains
>>
>> Name: domain1 Status: Not Running
>> Command list-domains executed successfully.
>>
>>
>> Exception:
>> ==========
>> [#|2009-07-21T10:46:39.121+0530|INFO|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|ERROR:
>> Error starting
>> file:/space/Sreekanth/servers/glassfishv3/glassfish/modules/osgi-main.jar
>> (org.osgi.framework.BundleException: Activator start error in bundle
>> com.sun.enterprise.osgi-adapter [54].)|#]
>>
>> [#|2009-07-21T10:46:39.122+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|java.lang.NullPointerException|#]
>>
>>
>> [#|2009-07-21T10:46:39.122+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at
>> org.apache.felix.framework.searchpolicy.Resolver.populateWireMap(Resolver.java:1484)|#]
>>
>>
>> [#|2009-07-21T10:46:39.122+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at
>> org.apache.felix.framework.searchpolicy.Resolver.populateWireMap(Resolver.java:1514)|#]
>>
>>
>> [#|2009-07-21T10:46:39.122+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at
>> org.apache.felix.framework.searchpolicy.Resolver.populateWireMap(Resolver.java:1514)|#]
>>
>>
>> [#|2009-07-21T10:46:39.122+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at
>> org.apache.felix.framework.searchpolicy.Resolver.populateWireMap(Resolver.java:1514)|#]
>>
>>
>> [#|2009-07-21T10:46:39.122+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at
>> org.apache.felix.framework.searchpolicy.Resolver.resolve(Resolver.java:104)|#]
>>
>>
>> [#|2009-07-21T10:46:39.123+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at
>> org.apache.felix.framework.Felix$FelixResolver.resolve(Felix.java:3733)|#]
>>
>>
>> [#|2009-07-21T10:46:39.123+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3105)|#]
>>
>> [#|2009-07-21T10:46:39.123+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at org.apache.felix.framework.Felix.startBundle(Felix.java:1441)|#]
>>
>> [#|2009-07-21T10:46:39.123+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:779)|#]
>>
>> [#|2009-07-21T10:46:39.123+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at
>> org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:145)|#]
>>
>>
>> [#|2009-07-21T10:46:39.123+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at
>> org.jvnet.hk2.osgiadapter.OSGiModuleImpl$1$1$1.loadClass(OSGiModuleImpl.java:309)|#]
>>
>>
>> [#|2009-07-21T10:46:39.123+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at com.sun.hk2.component.LazyInhabitant.fetch(LazyInhabitant.java:91)|#]
>>
>> [#|2009-07-21T10:46:39.123+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at com.sun.hk2.component.LazyInhabitant.type(LazyInhabitant.java:78)|#]
>>
>> [#|2009-07-21T10:46:39.123+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at
>> com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:228)|#]
>>
>>
>> [#|2009-07-21T10:46:39.124+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at
>> com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:126)|#]
>>
>>
>> [#|2009-07-21T10:46:39.124+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:442)|#]
>>
>> [#|2009-07-21T10:46:39.124+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:386)|#]
>>
>> [#|2009-07-21T10:46:39.124+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:121)|#]
>>
>> [#|2009-07-21T10:46:39.124+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at
>> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)|#]
>>
>>
>> [#|2009-07-21T10:46:39.124+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at org.apache.felix.framework.Felix.startBundle(Felix.java:1461)|#]
>>
>> [#|2009-07-21T10:46:39.124+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:779)|#]
>>
>> [#|2009-07-21T10:46:39.124+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at org.jvnet.hk2.osgimain.Main.start(Main.java:104)|#]
>>
>> [#|2009-07-21T10:46:39.124+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at
>> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)|#]
>>
>>
>> [#|2009-07-21T10:46:39.125+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at org.apache.felix.framework.Felix.startBundle(Felix.java:1461)|#]
>>
>> [#|2009-07-21T10:46:39.125+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at
>> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984)|#]
>>
>> [#|2009-07-21T10:46:39.125+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at
>> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)|#]
>>
>>
>> [#|2009-07-21T10:46:39.125+0530|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|
>> at java.lang.Thread.run(Thread.java:619)|#]
>>
>> Thanks,
>> Sreekanth
>>
>>
>> ---------------------------------------------------------------------
>> 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: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>