Deployment message indicates that the deployment fails, but the app actually 
does deploy but does not start
-----------------------------------------------------------------------------------------------------------

                 Key: GERONIMO-5189
                 URL: https://issues.apache.org/jira/browse/GERONIMO-5189
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: ActiveMQ, dependencies, deployment, Tomcat
    Affects Versions: 2.2
         Environment: Windows Server 2003 ee SP2
Geronimo with Tomcat
            Reporter: Steven Ashwill
            Priority: Minor


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.  


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.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to