dev@glassfish.java.net

Re: start-domain fails to finish for 600 seconds

From: Richard S. Hall <heavy_at_ungoverned.org>
Date: Fri, 18 Feb 2011 10:17:22 -0500

On 2/18/11 9:52, Tom Mueller wrote:
> Vince,
> I appears that the Felix is not properly detecting that the directory
> moved.
>
> It looks like it is seeing the "new" modules at the new directory
> name, but every new module looks like a duplicate of the old module at
> the old directory name. Felix is not realizing that the old modules
> are now gone.

Felix is not involved in such issues, it is the framework launcher that
tries to re-deploy bundles, so it would be the one that would need to
detect it.

-> richard

>
> If the domain's osgi_cache directory is removed after changing the
> name of the directory, then the domain will startup just fine.
>
> Tom
>
>
> On 2/17/2011 5:39 PM, Vince Kraemer wrote:
>> Hi... this is a strange one.
>>
>> I had installed 3.1 b42 at /a/b/c/GlassFish_Server.
>>
>> I used /a/b/c/GlassFish_Server/bin/asadmin start-domain and the
>> server started. (that isn't the strange part)
>>
>> I stopped the server.
>>
>> I changed the name of the server installation dir...
>> /a/b/c/GlassFish_Server became /a/b/c/GlassFish_Server4
>>
>> I used /a/b/c/GlassFish_Server4/bin/asadmin start-domain and the
>> server sort of started... but the start-domain command keeps ticking
>> (printing dots in the terminal window). I can access the root page
>> (http://localhost:8080). Eventually the start-domain command gives up
>> and kills the running server process.
>>
>> If I move the install back to /a/b/c/GlassFish_Server, asadmin
>> start-domain behaves as expected.
>>
>> the log is filled with straces similar to this one
>>
>> WARNING: Failed to install
>> file:/export/home/vkraemer/GlassFish_Server5/glassfish/modules/gms-bootstrap.jar
>> org.osgi.framework.BundleException: Bundle symbolic name and version
>> are not unique: org.glassfish.cluster.gms-bootstrap:3.1.0
>> at
>> org.apache.felix.framework.BundleImpl.createModule(BundleImpl.java:1180)
>> at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:79)
>> at org.apache.felix.framework.Felix.installBundle(Felix.java:2528)
>> at org.apache.felix.framework.Felix.installBundle(Felix.java:2436)
>> at
>> org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:129)
>> at org.jvnet.hk2.osgimain.Main.install(Main.java:363)
>> at org.jvnet.hk2.osgimain.Main.traverse(Main.java:293)
>> at org.jvnet.hk2.osgimain.Main.start(Main.java:144)
>> at
>> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:629)
>> at org.apache.felix.framework.Felix.activateBundle(Felix.java:1835)
>> at org.apache.felix.framework.Felix.startBundle(Felix.java:1752)
>> at
>> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156)
>> at
>> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
>> at java.lang.Thread.run(Thread.java:662)
>>
>> the last strace I see (if I start-domain --verbose) is this one
>>
>> java.lang.NullPointerException
>> at org.jvnet.hk2.osgimain.Main.start(Main.java:147)
>> at
>> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:629)
>> at org.apache.felix.framework.Felix.activateBundle(Felix.java:1835)
>> at org.apache.felix.framework.Felix.startBundle(Felix.java:1752)
>> at
>> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156)
>> at
>> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
>> at java.lang.Thread.run(Thread.java:662)
>>
>> vbk
>>