tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: destory method is called twice while the child is destoryed directly
Date Wed, 27 Oct 2010 09:24:20 GMT
On 27/10/2010 06:43, Ivan wrote:
> Hi,
>     While calling the method destory() on the StandardContext directly, it
> seems that the method destoryInternal() is called twice in the
> LifecycleMBeanBase, the two stacktraces are below :
>     a.  LifecycleMBeanBase.unregister(ObjectName) line: 191
>          LifecycleMBeanBase.destroyInternal() line: 73
>          ContainerBase.destroyInternal() line: 1109
>          StandardContext.destroyInternal() line: 5114
>          LifecycleBase.destroy() line: 271
>          ContainerBase.removeChild(Container) line: 963
>          ContainerBase.destroyInternal() line: 1106
>          StandardContext.destroyInternal() line: 5114
>          LifecycleBase.destroy() line: 271
>          ...
>      b. LifecycleMBeanBase.unregister(ObjectName) line: 191
>          LifecycleMBeanBase.destroyInternal() line: 73
>          ContainerBase.destroyInternal() line: 1109
>          StandardContext.destroyInternal() line: 5114
>          LifecycleBase.destroy() line: 271
>          ...
> 
>      So is it by desgin or some code changes might be needed ? Thanks.

It is a bug - a side effect of the Lifecycle clean-up in Tomcat 7. BTW,
mentioning which version you are using would be a big help.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message