dev@glassfish.java.net

Re: [v3] 08/27 nightly build - server can't startup after 2 stop/start

From: Jerome Dochez <Jerome.Dochez_at_Sun.COM>
Date: Wed, 27 Aug 2008 11:41:27 -0700

we need to talk about this as using BundleActivator and bunch of static
fields referencing globals variable is *not* the right way of doing
things right now. It is conflicting with the hk2 dependency resolution
etc...

IMO, start level is not a good feature, it's an hardcoded value that can
be seen reasonable at the time the bundle was created but cannot make
sense if the bundle is reused in different environments like our
distributions. you cannot order things when you don't know how many/what
type of sibling bundles you have.

We have introduced a dependency management which takes care of resolving
this type of issues, I fail to understand why it cannot be used here.
please elaborate.

jerome


Sahoo wrote:
> See https://glassfish.dev.java.net/issues/show_bug.cgi?id=5681
>
> I will be working on it tomorrow.
>
> Thanks,
> Sahoo
>
> Jerome Dochez wrote:
>> yes I have seen this as well, I have an imminent putback to turn off
>> completely the flashlight stuff.
>>
>> jerome
>>
>> Anissa Lam wrote:
>>> Hi,
>>> I notice this problem with my Mac and Solaris x86. I wasn't able
>>> to start the server after working on it for a while. Finally i
>>> realize all i need to do is just start and stop the server. After 2
>>> times, there is no way to bring up the server. This happens very
>>> consistently with a fresh install.
>>>
>>> Here is what i did:
>>>
>>> macau2:~/Sun/v3/b21-0827 anilam$ cd glassfish/bin
>>> macau2:~/Sun/v3/b21-0827/glassfish/bin anilam$ ./asadmin start-domain
>>> macau2:~/Sun/v3/b21-0827/glassfish/bin anilam$ ./asadmin stop-domain
>>> Waiting for the domain to stop .................
>>> Command stop-domain executed successfully.
>>> macau2:~/Sun/v3/b21-0827/glassfish/bin anilam$ ./asadmin start-domain
>>> macau2:~/Sun/v3/b21-0827/glassfish/bin anilam$ ./asadmin stop-domain
>>> Waiting for the domain to stop .............
>>> Command stop-domain executed successfully.
>>> macau2:~/Sun/v3/b21-0827/glassfish/bin anilam$ ./asadmin start-domain
>>> Error starting domain: domain1. It didn't start in 90 seconds
>>> Closest matching command(s):
>>> start-domain
>>> macau2:~/Sun/v3/b21-0827/glassfish/bin anilam$
>>>
>>>
>>> Absolutely nothing happened in between. Never tried to connect to
>>> server through the browser.
>>> Here is the exception, and server.log is attached.
>>>
>>> Anissa.
>>>
>>>
>>> [#|2008-08-27T10:27:31.723-0700|INFO||javax.enterprise.system.core.classloading|_ThreadID=12;_ThreadName=Thread-3;Class
>>> Loader for Bundle [GlassFish-Application-Common-Module [15]
>>> ];|APIClassLoader = Class Loader for Bundle
>>> [GlassFish-Application-Common-Module [15] ]|#]
>>>
>>> [#|2008-08-27T10:27:31.725-0700|INFO||javax.enterprise.system.core.classloading|_ThreadID=12;_ThreadName=Thread-3;|urls
>>> = []|#]
>>>
>>> [#|2008-08-27T10:27:31.731-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|Exception
>>> in thread "GlassFish Kernel Main Thread" |#]
>>>
>>> [#|2008-08-27T10:27:31.731-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|com.sun.enterprise.module.ResolveError:
>>> Failed to start org.glassfish.web.web-cli(Web module command line
>>> interface):10.0.0.SNAPSHOT|#]
>>>
>>> [#|2008-08-27T10:27:31.731-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|
>>> at
>>> org.jvnet.hk2.osgiadapter.OSGiModuleImpl.resolve(OSGiModuleImpl.java:111)|#]
>>>
>>>
>>> [#|2008-08-27T10:27:31.731-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|
>>> at
>>> org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:120)|#]
>>>
>>>
>>> [#|2008-08-27T10:27:31.732-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|
>>> at
>>> org.jvnet.hk2.osgiadapter.OSGiModuleImpl$1$1.loadClass(OSGiModuleImpl.java:252)|#]
>>>
>>>
>>> [#|2008-08-27T10:27:31.732-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|
>>> at
>>> com.sun.hk2.component.LazyInhabitant.fetch(LazyInhabitant.java:91)|#]
>>>
>>> [#|2008-08-27T10:27:31.732-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|
>>> at com.sun.hk2.component.LazyInhabitant.type(LazyInhabitant.java:78)|#]
>>>
>>> [#|2008-08-27T10:27:31.732-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|
>>> at
>>> com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:160)|#]
>>>
>>>
>>> [#|2008-08-27T10:27:31.732-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|
>>> at
>>> com.sun.enterprise.v3.server.AppServerStartup$1.run(AppServerStartup.java:103)|#]
>>>
>>>
>>> [#|2008-08-27T10:27:31.732-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|Caused
>>> by: org.osgi.framework.BundleException: Activator start error.|#]
>>>
>>> [#|2008-08-27T10:27:31.733-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|
>>> at org.apache.felix.framework.Felix._startBundle(Felix.java:1654)|#]
>>>
>>> [#|2008-08-27T10:27:31.733-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|
>>> at org.apache.felix.framework.Felix.startBundle(Felix.java:1544)|#]
>>>
>>> [#|2008-08-27T10:27:31.733-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|
>>> at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:371)|#]
>>>
>>> [#|2008-08-27T10:27:31.733-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|
>>> at
>>> org.jvnet.hk2.osgiadapter.OSGiModuleImpl.resolve(OSGiModuleImpl.java:108)|#]
>>>
>>>
>>> [#|2008-08-27T10:27:31.733-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|
>>> ... 6 more|#]
>>>
>>> [#|2008-08-27T10:27:31.733-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|Caused
>>> by: java.lang.NoClassDefFoundError|#]
>>>
>>> [#|2008-08-27T10:27:31.734-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|
>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>>> Method)|#]
>>>
>>> [#|2008-08-27T10:27:31.734-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)|#]
>>>
>>>
>>> [#|2008-08-27T10:27:31.734-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|
>>> at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)|#]
>>>
>>>
>>> [#|2008-08-27T10:27:31.734-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|
>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)|#]
>>>
>>> [#|2008-08-27T10:27:31.734-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|
>>> at java.lang.Class.newInstance0(Class.java:350)|#]
>>>
>>> [#|2008-08-27T10:27:31.735-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|
>>> at java.lang.Class.newInstance(Class.java:303)|#]
>>>
>>> [#|2008-08-27T10:27:31.735-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|
>>> at
>>> org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3519)|#]
>>>
>>>
>>> [#|2008-08-27T10:27:31.735-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|
>>> at org.apache.felix.framework.Felix._startBundle(Felix.java:1605)|#]
>>>
>>> [#|2008-08-27T10:27:31.735-0700|SEVERE||null|_ThreadID=12;_ThreadName=Thread-3;|
>>> ... 9 more|#]
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>