users@jersey.java.net

Re: [Jersey] IllegalStateException thrown when stopping GFv3

From: Paul Sandoz <Paul.Sandoz_at_oracle.com>
Date: Wed, 13 Oct 2010 13:36:32 +0200

On Sep 24, 2010, at 6:41 AM, NBW wrote:

> When I stop GFv3 build 74.2 I am seeing the following
> IllegalStateException thrown into the server.log which references
> Jersey. This is with Jersey 1.1.5.1. Any thoughts?
>

It's an issue with GlassFish, see:

   https://glassfish.dev.java.net/issues/show_bug.cgi?id=11420

Paul.

> TIA,
>
> -Noah
>
> [#|2010-09-24T00:30:06.437-0400|SEVERE|glassfishv3.0|
> javax.enterprise.system.core.com.sun.enterprise.v3.server|
> _ThreadID=26;_ThreadName=Thread-1;|Cannot stop module web
> java.lang.IllegalStateException: Unknown JCDI-enabled managed bean
> com.sun.jersey.spi.container.servlet.ServletContainer_at_3d2cc8 of
> class class com.sun.jersey.spi.container.servlet.ServletContainer
> at
> com
> .sun
> .enterprise
> .container
> .common
> .impl
> .managedbean
> .ManagedBeanManagerImpl
> .destroyManagedBean(ManagedBeanManagerImpl.java:533)
> at
> com
> .sun
> .enterprise
> .container
> .common
> .impl
> .util
> .InjectionManagerImpl.destroyManagedObject(InjectionManagerImpl.java:
> 339)
> at
> com
> .sun
> .web
> .server
> .J2EEInstanceListener.handleAfterEvent(J2EEInstanceListener.java:328)
> at
> com
> .sun
> .web
> .server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:
> 116)
> at
> org
> .apache
> .catalina
> .util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:384)
> at
> org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:
> 1745)
> at
> org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:
> 2041)
> at
> org.apache.catalina.core.StandardContext.stop(StandardContext.java:
> 5371)
> at com.sun.enterprise.web.WebModule.stop(WebModule.java:530)
> at
> org
> .apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:
> 1057)
> at
> com
> .sun.enterprise.web.WebContainer.unloadWebModule(WebContainer.java:
> 2144)
> at
> com
> .sun.enterprise.web.WebContainer.unloadWebModule(WebContainer.java:
> 2092)
> at com.sun.enterprise.web.WebApplication.stop(WebApplication.java:
> 133)
> at org.glassfish.internal.data.EngineRef.stop(EngineRef.java:165)
> at org.glassfish.internal.data.ModuleInfo.stop(ModuleInfo.java:268)
> at
> org
> .glassfish.internal.data.ApplicationInfo.stop(ApplicationInfo.java:
> 251)
> at
> com
> .sun
> .enterprise
> .v3
> .server
> .ApplicationLoaderService.preDestroy(ApplicationLoaderService.java:
> 387)
> at
> com
> .sun
> .hk2
> .component
> .AbstractWombInhabitantImpl.dispose(AbstractWombInhabitantImpl.java:
> 74)
> at
> com
> .sun
> .hk2.component.SingletonInhabitant.release(SingletonInhabitant.java:
> 66)
> at com.sun.hk2.component.LazyInhabitant.release(LazyInhabitant.java:
> 112)
> at
> com
> .sun
> .enterprise.v3.server.AppServerStartup.stop(AppServerStartup.java:393)
> at org.jvnet.hk2.osgiadapter.HK2Main.stop(HK2Main.java:154)
> at
> org
> .apache
> .felix.framework.util.SecureAction.stopActivator(SecureAction.java:
> 662)
> at org.apache.felix.framework.Felix.stopBundle(Felix.java:2071)
> at org.apache.felix.framework.BundleImpl.stop(BundleImpl.java:951)
> at org.apache.felix.framework.BundleImpl.stop(BundleImpl.java:938)
> at
> org.jvnet.hk2.osgiadapter.OSGiModuleImpl.detach(OSGiModuleImpl.java:
> 249)
> at
> org.jvnet.hk2.osgiadapter.OSGiModuleImpl.stop(OSGiModuleImpl.java:227)
> at
> com
> .sun
> .enterprise
> .v3.admin.StopDomainCommand.execute(StopDomainCommand.java:86)
> at com.sun.enterprise.v3.admin.CommandRunnerImpl
> $1.execute(CommandRunnerImpl.java:305)
> at com.sun.enterprise.v3.admin.CommandRunnerImpl
> $2.run(CommandRunnerImpl.java:333)
> |#]
>