eclipse-ee4j / glassfish

Eclipse GlassFish
https://eclipse-ee4j.github.io/glassfish/
385 stars 143 forks source link

Exception during processing of event of type AFTER_DESTROY_EVENT for web module (Clone of WEB5001) #17063

Closed glassfishrobot closed 13 years ago

glassfishrobot commented 13 years ago

When performing a redeploy from asadmin commandline, the server seems to take a very long time to redeploy, and the following messages are seen in the log:

[#|2011-07-19T14:06:28.153+0000|SEVERE|glassfish3.1|javax.enterprise.system.container.web.com.sun.web.server|_ThreadID=276;_ThreadName=Thread-1;|WEB5001: Exception during processing of event of type AFTER_DESTROY_EVENT for web module StandardEngine[glassfish-web].StandardHost[widget-server].StandardContext[/_api] com.sun.enterprise.container.common.spi.util.InjectionException: No descriptor registered for current invocation : com.sun.enterprise.web.WebComponentInvocation@1f0713d1 at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.invokeInstancePreDestroy(InjectionManagerImpl.java:244) at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.destroyManagedObject(InjectionManagerImpl.java:438) at com.sun.web.server.J2EEInstanceListener.handleAfterEvent(J2EEInstanceListener.java:328) at com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:112) at org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:348) at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1754) at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:2052) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:5497) at com.sun.enterprise.web.WebModule.stop(WebModule.java:529) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1049) at com.sun.enterprise.web.WebContainer.unloadWebModule(WebContainer.java:2191) at com.sun.enterprise.web.WebContainer.unloadWebModule(WebContainer.java:2146) at com.sun.enterprise.web.WebApplication.stop(WebApplication.java:151) at org.glassfish.internal.data.EngineRef.stop(EngineRef.java:169) at org.glassfish.internal.data.ModuleInfo.stop(ModuleInfo.java:302) at org.glassfish.internal.data.ApplicationInfo.stop(ApplicationInfo.java:314) at com.sun.enterprise.v3.server.ApplicationLifecycle.unload(ApplicationLifecycle.java:997) at com.sun.enterprise.v3.server.ApplicationLifecycle.undeploy(ApplicationLifecycle.java:1023) at org.glassfish.deployment.admin.UndeployCommand.execute(UndeployCommand.java:333) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:360) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235) at org.glassfish.deployment.admin.DeployCommand.handleRedeploy(DeployCommand.java:611) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:264) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:360) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235) at org.glassfish.deployment.admin.ReDeployCommand.execute(ReDeployCommand.java:126) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:465) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:222) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:662)

| #] |

==================================================================================== The previous message is shown 3 times before the following:

[#|2011-07-19T14:06:28.726+0000|WARNING|glassfish3.1|javax.enterprise.system.core.classloading.com.sun.enterprise.loader|_ThreadID=278;_ThreadName=Thread-1;|LDR5207: ASURLClassLoader EarLibClassLoader : doneCalled = true doneSnapshot = ASURLClassLoader.done() called ON EarLibClassLoader : urlSet = [URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/jericho-html-2.6.1.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/hibernate-commons-annotations-3.2.0.Final.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/commons-fileupload-1.2.1.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/twitter4j-core-2.2.3.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/jai_core-1.1.3.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/hibernate-jpa-2.0-api-1.0.0.Final.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/persistence-1.0-SNAPSHOT.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/util-1.0-SNAPSHOT.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/stringtemplate-3.2.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/antlr-2.7.7.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/slf4j-api-1.5.10.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/joda-time-1.6.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/commons-lang-2.4.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/json-20090211.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/commons-codec-1.2.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/hibernate-core-3.5.1-Final.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/antlr-2.7.6.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/commons-collections-3.1.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/dom4j-1.6.1.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/xml-apis-1.0.b2.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/jta-1.1.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/hibernate-annotations-3.5.1-Final.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/ehcache-core-2.4.3.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/joda-time-hibernate-1.1.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/jackson-mapper-lgpl-1.8.1.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/javassist-3.9.0.GA.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/json-20080701.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/commons-logging-1.0.4.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/jqwicket-0.5.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/ehcache-web-2.0.3.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/jackson-core-lgpl-1.8.1.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/asm-3.1.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/xmlrpc-common-3.0.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/commons-httpclient-3.1.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/commons-collections-3.2.1.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/xmlrpc-client-3.0.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/wicket-datetime-1.4.17.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/jazzy-0.5.2-rtext-1.4.1.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/cglib-2.2.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/xpp3_min-1.1.4c.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/hibernate-entitymanager-3.5.1-Final.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/wicket-1.4.17.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/jyaml-1.3.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/xstream-1.3.1.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/junit-3.8.1.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/ws-commons-util-1.0.1.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/twitter-text-1.3.1.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/wicket-extensions-1.4.17.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/jdom-1.0.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/tinymce-1.4.17.1.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/commons-io-1.4.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/metadata-extractor-2.4.0-beta-1.jar, URLEntry : file:/opt/glassfish31/glassfish/domains/vhm/applications/vhm/lib/rome-1.0.jar] doneCalled = false Parent -> org.glassfish.internal.api.DelegatingClassLoader@73616964

AT Tue Jul 19 14:06:28 GMT 2011 BY :java.lang.Throwable: printStackTraceToString at com.sun.enterprise.util.Print.printStackTraceToString(Print.java:639) at com.sun.enterprise.loader.ASURLClassLoader.done(ASURLClassLoader.java:211) at com.sun.enterprise.loader.ASURLClassLoader.preDestroy(ASURLClassLoader.java:179) at org.glassfish.javaee.full.deployment.EarClassLoader.preDestroy(EarClassLoader.java:114) at org.glassfish.internal.data.ApplicationInfo.unload(ApplicationInfo.java:350) at com.sun.enterprise.v3.server.ApplicationLifecycle.unload(ApplicationLifecycle.java:998) at com.sun.enterprise.v3.server.ApplicationLifecycle.undeploy(ApplicationLifecycle.java:1023) at org.glassfish.deployment.admin.UndeployCommand.execute(UndeployCommand.java:333) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:360) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235) at org.glassfish.deployment.admin.DeployCommand.handleRedeploy(DeployCommand.java:611) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:264) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:360) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235) at org.glassfish.deployment.admin.ReDeployCommand.execute(ReDeployCommand.java:126) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:465) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:222) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:662) Parent -> org.glassfish.internal.api.DelegatingClassLoader@73616964 was requested to find class net.sf.ehcache.transaction.xa.processor.XARequestProcessor after done was invoked from the following stack trace java.lang.Throwable at com.sun.enterprise.loader.ASURLClassLoader.findClassData(ASURLClassLoader.java:780) at com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:696) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at net.sf.ehcache.CacheManager.shutdown(CacheManager.java:1200) at net.sf.ehcache.hibernate.SingletonEhCacheRegionFactory.stop(SingletonEhCacheRegionFactory.java:93) at org.hibernate.impl.SessionFactoryImpl.close(SessionFactoryImpl.java:966) at org.hibernate.ejb.EntityManagerFactoryImpl.close(EntityManagerFactoryImpl.java:126) at org.glassfish.persistence.jpa.JPADeployer.closeEMFs(JPADeployer.java:404) at org.glassfish.persistence.jpa.JPADeployer.event(JPADeployer.java:395) at org.glassfish.kernel.event.EventsImpl$1.run(EventsImpl.java:120) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)

| #] |

[#|2011-07-19T14:06:28.729+0000|WARNING|glassfish3.1|javax.enterprise.system.core.org.glassfish.kernel.event|_ThreadID=278;_ThreadName=Thread-1;|Exception while dispatching an event java.lang.NoClassDefFoundError: net/sf/ehcache/transaction/xa/processor/XARequestProcessor at net.sf.ehcache.CacheManager.shutdown(CacheManager.java:1200) at net.sf.ehcache.hibernate.SingletonEhCacheRegionFactory.stop(SingletonEhCacheRegionFactory.java:93) at org.hibernate.impl.SessionFactoryImpl.close(SessionFactoryImpl.java:966) at org.hibernate.ejb.EntityManagerFactoryImpl.close(EntityManagerFactoryImpl.java:126) at org.glassfish.persistence.jpa.JPADeployer.closeEMFs(JPADeployer.java:404) at org.glassfish.persistence.jpa.JPADeployer.event(JPADeployer.java:395) at org.glassfish.kernel.event.EventsImpl$1.run(EventsImpl.java:120) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.ClassNotFoundException: net.sf.ehcache.transaction.xa.processor.XARequestProcessor at com.sun.enterprise.loader.ASURLClassLoader.findClassData(ASURLClassLoader.java:782) at com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:696) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 13 more

| #] |

==================================================================================== This is odd, as the EAR loaded fine on another occasion, and looking at the file in an archive tool shows that the class file exists at the proper path.

Anyways - I have no idea what this is all about.

Environment

Linux localhost 2.6.38-gentoo-r6 #5 SMP PREEMPT x86_64 Intel(R) Core(TM) i7-2820QM CPU @ 2.30GHz GenuineIntel GNU/Linux java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

Affected Versions

[3.1]

glassfishrobot commented 6 years ago
glassfishrobot commented 13 years ago

@glassfishrobot Commented @honghzzhang said: As the stack trace is from web container, assign to web team for initial evaluation.

glassfishrobot commented 13 years ago

@glassfishrobot Commented @shingwaichan said: There are two issues here: 1. com.sun.enterprise.container.common.spi.util.InjectionException: No descriptor registered for current invocation : com.sun.enterprise.web.WebComponentInvocation@1f0713d1 at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.invokeInstancePreDestroy(InjectionManagerImpl.java:244) at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.destroyManagedObject(InjectionManagerImpl.java:438) at com.sun.web.server.J2EEInstanceListener.handleAfterEvent(J2EEInstanceListener.java:328)

In J233InstanceListener, one invoke injectionMgr.destroyManagedObject(instance, false); Since validate = false in this case, InjectionManager should not throw exception in this case.

2. java.lang.NoClassDefFoundError: net/sf/ehcache/transaction/xa/processor/XARequestProcessor at net.sf.ehcache.CacheManager.shutdown(CacheManager.java:1200) at net.sf.ehcache.hibernate.SingletonEhCacheRegionFactory.stop(SingletonEhCacheRegionFactory.java:93) at org.hibernate.impl.SessionFactoryImpl.close(SessionFactoryImpl.java:966) at org.hibernate.ejb.EntityManagerFactoryImpl.close(EntityManagerFactoryImpl.java:126) at org.glassfish.persistence.jpa.JPADeployer.closeEMFs(JPADeployer.java:404) at org.glassfish.persistence.jpa.JPADeployer.event(JPADeployer.java:395)

One cannot find the class XARequestProcessor. Can you double check your application and attach a test case?

Assign to Marian to investigate the InjectionManager exception.

glassfishrobot commented 13 years ago

@glassfishrobot Commented cf126330 said: can you attach a test app? Is it intermitten or always reproducible?

glassfishrobot commented 13 years ago

@glassfishrobot Commented cf126330 said: Does your app use any dynamic servlet registration, e.g., via ServletContext.addServlet(...)?

A related issue is http://java.net/jira/browse/GLASSFISH-11420

glassfishrobot commented 13 years ago

@glassfishrobot Commented cf126330 said: Committed revision 48616, overload InjectionManager.invokeInstancePreDestroy method w/ validate flag.

Sending container-common/src/main/java/com/sun/enterprise/container/common/impl/util/InjectionManagerImpl.java Sending container-common/src/main/java/com/sun/enterprise/container/common/spi/util/InjectionManager.java

glassfishrobot commented 13 years ago

@glassfishrobot Commented cf126330 said: assign it back to Shing Wai for any further fix from web container.

glassfishrobot commented 13 years ago

@glassfishrobot Commented @shingwaichan said: The remaining issue is about java.lang.NoClassDefFoundError: net/sf/ehcache/transaction/xa/processor/XARequestProcessor at net.sf.ehcache.CacheManager.shutdown(CacheManager.java:1200) at net.sf.ehcache.hibernate.SingletonEhCacheRegionFactory.stop(SingletonEhCacheRegionFactory.java:93) at org.hibernate.impl.SessionFactoryImpl.close(SessionFactoryImpl.java:966) at org.hibernate.ejb.EntityManagerFactoryImpl.close(EntityManagerFactoryImpl.java:126) at org.glassfish.persistence.jpa.JPADeployer.closeEMFs(JPADeployer.java:404)

Assign to Mitesh for further investigation.

glassfishrobot commented 13 years ago

@glassfishrobot Commented atomicknight said: The remaining issue is the same as #16712: https://java.net/jira/browse/GLASSFISH-16712

The error is triggered because the web class loader has already shut down by the time the request to load XARequestProcessor comes in.

glassfishrobot commented 13 years ago

@glassfishrobot Commented mm110999 said: Closing as per comments above. Duplicate of https://java.net/jira/browse/GLASSFISH-16712

glassfishrobot commented 13 years ago

@glassfishrobot Commented Was assigned to mm110999

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-17063

glassfishrobot commented 13 years ago

@glassfishrobot Commented Reported by pgiblox

glassfishrobot commented 13 years ago

@glassfishrobot Commented Marked as duplicate on Tuesday, September 13th 2011, 1:38:11 pm