dev@glassfish.java.net

problem with NetBeans and GF update

From: Bobby Bissett <bobby.bissett_at_oracle.com>
Date: Thu, 10 Mar 2011 13:53:10 -0500

Hi all,

After updating a 3.0.1 installation to 3.1, if you try to start the server with "asadmin start-domain" then you're told that you need to run first with the --upgrade flag and then all is well. If you run the update and then start the server through NetBeans, it fails and eventually NB tells you "<your server> Start Failed." Log info is below.

Can someone tell me how NB is starting GF? This is an ugly bug, especially now that I see that it leaves a Java process running after the failures below. That running process leads to another error because it prevents the osgi-cache from being renamed when the user runs "asadmin start-domain --upgrade." At least that's my suspicion about what's going on on the Windows environment where this was reported. See comments here:

http://blogs.sun.com/bobby/entry/moving_on_up_upgrading_to#comments

Thanks,
Bobby


----- server.log -----

Mar 10, 2011 1:40:42 PM null
INFO: Running GlassFish Version: GlassFish Server Open Source Edition 3.1 (build 43)
[#|2011-03-10T13:40:42.894-0500|WARNING|glassfish3.1|null|_ThreadID=1;_ThreadName=Thread-1;|Cannot read maxHistoryFiles property from logging config file. Using default.|#]

[#|2011-03-10T13:40:42.995-0500|INFO|glassfish3.1|org.glassfish.ha.store.spi.BackingStoreFactoryRegistry|_ThreadID=11;_ThreadName=Thread-1;|Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry|#]

[#|2011-03-10T13:40:43.526-0500|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=26;_ThreadName=Thread-1;|Grizzly Framework 1.9.31 started in: 22ms - bound to [0.0.0.0:8181]|#]

[#|2011-03-10T13:40:43.504-0500|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=22;_ThreadName=Thread-1;|Grizzly Framework 1.9.31 started in: 132ms - bound to [0.0.0.0:8080]|#]

[#|2011-03-10T13:40:43.580-0500|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=30;_ThreadName=Thread-1;|Grizzly Framework 1.9.31 started in: 2ms - bound to [0.0.0.0:4848]|#]

[#|2011-03-10T13:40:43.606-0500|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=33;_ThreadName=Thread-1;|Grizzly Framework 1.9.31 started in: 17ms - bound to [0.0.0.0:3700]|#]

[#|2011-03-10T13:40:43.618-0500|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=36;_ThreadName=Thread-1;|Grizzly Framework 1.9.31 started in: 7ms - bound to [0.0.0.0:7676]|#]

[#|2011-03-10T13:40:44.158-0500|SEVERE|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=Thread-1;|Exception in thread "main" |#]

[#|2011-03-10T13:40:44.240-0500|SEVERE|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=Thread-1;|java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
        at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)
Caused by: java.lang.LinkageError: injection failed on class com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl from 184.1
        at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:254)
        at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:91)
        at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:126)
        at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
        at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
        at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
        at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
        at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
        at org.jvnet.hk2.component.Habitat.getComponent(Habitat.java:796)
        at com.sun.enterprise.v3.server.ApplicationLoaderService.initializeRuntimeDependencies(ApplicationLoaderService.java:299)
        at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:315)
        at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:208)
        at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
        at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
        at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
        at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
        at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
        at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
        at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:243)
        at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:135)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:117)
        ... 6 more
Caused by: java.lang.LinkageError: injection failed on class com.sun.enterprise.container.common.impl.ComponentEnvManagerImpl from 184.1
        at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:254)
        at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:91)
        at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:126)
        at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
        at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
        at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
        at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
        at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
        at org.jvnet.hk2.component.Habitat.getComponent(Habitat.java:796)
        at com.sun.hk2.component.InjectInjectionResolver.getServiceInjectValue(InjectInjectionResolver.java:147)
        at com.sun.hk2.component.InjectInjectionResolver.getValue(InjectInjectionResolver.java:88)
        at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:141)
        ... 27 more
Caused by: java.lang.LinkageError: injection failed on class com.sun.enterprise.transaction.TransactionManagerHelper from 151.1
        at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:254)
        at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:91)
        at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:126)
        at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
        at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
        at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
        at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
        at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
        at org.jvnet.hk2.component.Habitat.getComponent(Habitat.java:796)
        at com.sun.hk2.component.InjectInjectionResolver.getServiceInjectValue(InjectInjectionResolver.java:147)
        at com.sun.hk2.component.InjectInjectionResolver.getValue(InjectInjectionResolver.java:88)
        at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:141)
        ... 38 more
Caused by: java.lang.LinkageError: injection failed on class com.sun.enterprise.transaction.JavaEETransactionManagerSimplified from 151.1
        at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:254)
        at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:91)
        at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:126)
        at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
        at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
        at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
        at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
        at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
        at org.jvnet.hk2.component.Habitat.getComponent(Habitat.java:796)
        at com.sun.hk2.component.InjectInjectionResolver.getServiceInjectValue(InjectInjectionResolver.java:147)
        at com.sun.hk2.component.InjectInjectionResolver.getValue(InjectInjectionResolver.java:88)
        at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:141)
        ... 49 more
Caused by: java.lang.LinkageError: injection failed on class org.glassfish.api.invocation.InvocationManagerImpl from 129.1
        at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:254)
        at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:91)
        at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:126)
        at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
        at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
        at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
        at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
        at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
        at org.jvnet.hk2.component.Habitat.getComponent(Habitat.java:796)
        at com.sun.hk2.component.InjectInjectionResolver.getServiceInjectValue(InjectInjectionResolver.java:147)
        at com.sun.hk2.component.InjectInjectionResolver.getValue(InjectInjectionResolver.java:88)
        at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:141)
        ... 60 more
Caused by: com.sun.enterprise.module.ResolveError: Failed to start Bundle Id [93] State [INSTALLED] [org.glassfish.connectors.runtime(Java EE Connector Architecture Runtime for GlassFish):3.1]
        at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:177)
        at org.jvnet.hk2.osgiadapter.OSGiModuleImpl$2$1$1.loadClass(OSGiModuleImpl.java:344)
        at com.sun.hk2.component.LazyInhabitant.loadClass(LazyInhabitant.java:124)
        at com.sun.hk2.component.LazyInhabitant.fetch(LazyInhabitant.java:111)
        at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:135)
        at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
        at org.jvnet.hk2.component.Habitat$5.get(Habitat.java:701)
        at java.util.AbstractList$Itr.next(AbstractList.java:345)
        at java.util.AbstractCollection.toArray(AbstractCollection.java:171)
        at com.sun.hk2.component.InjectInjectionResolver.getArrayInjectValue(InjectInjectionResolver.java:113)
        at com.sun.hk2.component.InjectInjectionResolver.getValue(In|#]

[#|2011-03-10T13:40:44.241-0500|SEVERE|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=Thread-1;|jectInjectionResolver.java:81)
        at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:141)
        ... 71 more
Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.connectors.runtime [93]: Unable to resolve 93.1: missing requirement [93.1] package; (&(package=com.sun.enterprise.security)(version>=3.1.0)) [caused by: Unable to resolve 49.1: missing requirement [49.1] package; (&(package=com.sun.jaspic.config.factory)(version>=3.1.0)) [caused by: Unable to resolve 233.0: missing requirement [233.0] package; (package=com.sun.security.auth.login)]]
        at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3443)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1727)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:922)
        at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:169)
        ... 82 more
|#]