geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashwill, Steve (Facilities & Services)" <sashw...@uiuc.edu>
Subject Geronimo v2.2 redeploy ear error
Date Wed, 17 Mar 2010 14:43:56 GMT
We are having an issue similar to the jira listed below.  We get the
message that the deployment fails, but the app actually does deploy but
does not start.  All we have to do is click start and everything seems
fine.

We do not get this error on
Version	2.2-SNAPSHOT	
Build	2009.03.23-15:10:47.340-0400	

But it started when we upgraded to the 2.2 release.  I'm not sure how to
reopen an issue or to create a new one, but would be more than happy to
if someone points me to the instructions.


Here is a portion of the stack trace we receive when we attempt to
redeploy an application ear:

INFO   | jvm 1    | 2010/03/17 09:25:09 | java.lang.ClassCastException:
org.apache.geronimo.connector.outbound.connectiontracking.ConnectorInsta
nceContextImpl cannot be cast to
org.apache.geronimo.connector.outbound.connectiontracking.SharedConnecto
rInstanceContext
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.tomcat.interceptor.InstanceContextBeforeAfter.before
(InstanceContextBeforeAfter.java:49)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.tomcat.interceptor.ComponentContextBeforeAfter.befor
e(ComponentContextBeforeAfter.java:40)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.tomcat.interceptor.UserTransactionBeforeAfter.before
(UserTransactionBeforeAfter.java:63)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(Geronim
oBeforeAfterValve.java:43)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.tomcat.GeronimoStandardContext.start(GeronimoStandar
dContext.java:264)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:791)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.tomcat.TomcatContainer.addContext(TomcatContainer.ja
va:339)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.tomcat.TomcatWebAppContext.doStart(TomcatWebAppConte
xt.java:525)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInst
ance.java:953)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GB
eanInstanceState.java:269)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstance
State.java:103)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java
:525)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBean
Dependency.java:110)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDepende
ncy.java:145)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDepende
ncy.java:119)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(
BasicLifecycleMonitor.java:175)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicL
ifecycleMonitor.java:44)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroad
caster.fireRunningEvent(BasicLifecycleMonitor.java:253)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GB
eanInstanceState.java:295)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstance
State.java:103)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBea
nInstanceState.java:125)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInst
ance.java:539)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKe
rnel.java:377)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGB
eans(ConfigurationUtil.java:456)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGB
eans(ConfigurationUtil.java:493)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(Kerne
lConfigurationManager.java:190)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfig
uration(SimpleConfigurationManager.java:546)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfig
uration(SimpleConfigurationManager.java:527)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
sun.reflect.GeneratedMethodAccessor2339.invoke(Unknown Source)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
java.lang.reflect.Method.invoke(Method.java:597)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(Reflect
ionMethodInvoker.java:34)
INFO   | jvm 1    | 2010/03/17 09:25:09 | 	at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.j
ava:130)


Here is the link to JIRA Geronimo issue
https://issues.apache.org/jira/browse/GERONIMO-3655

org.apache.openejb.core.mdb.MdbInstanceFactory class pass invalid
ThreadContext instance to ThreadContext.exit method at line 263 of its
constructBean method. This brokes stack-like usage of ThreadContext
objects and leads to problems during lazy initialization of ejb
components when they called for the first time from the web tier. In
particular ClassCastException is thrown in
org.apache.geronimo.tomcat.interceptor.InstanceContextBeforeAfter.before
() at line 49, because ConnectorInstanceContextImpl instance is returned
instead of SharedConnectorInstanceContext instance. This error results
in that
org.apache.geronimo.tomcat.listener.DispatchListener.beforeDispatch
method does not put any data into the current context stack so when the
afterDispatch method is called the current context stack throws
java.util.EmptyStackException.

Steven Ashwill




Mime
View raw message