You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Quinten Verheyen <q....@ringring.be> on 2005/04/15 17:21:24 UTC

how to solve undeploy locking issue

Hi, I'm resending this issue, I still have the locked jar situation when executing the catalina undeploy task, it only occurs when my web.xml was pointing to resources in that jar. Temporarily I'm using alternative approaches (overwriting files, catalina stop+start), but they don't guarantee it works all the time.

A couple of weeks ago, I brought this up on this list and was advised to test it against Tomcat 5.5.9. I did and the problem still occurred, so I checked non-Tomcat possible causes first, like the resource's lifecycle management (done by Spring framework), but it all seems to point at Tomcat or rather the Tomcat's undeploy task.

What goes wrong is very simple, the undeploy task removes the war file, but not the expanded dir because one if it's jars could not be removed. I believe the reason is that the context is removed before the resources had the time to be destroyed, resulting in a trapped situation, but I'm not sure, I could be wrong.

The log lines below (v5.5.9) aren't helping me enough :

2005-04-15 09:16:21,561 INFO [org.springframework.web.servlet.DispatcherServlet]
 - Servlet 'momagw' configured successfully

// EXECUTING UNDEPLOY TASK

2005-04-15 09:17:13,873 INFO [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/momagw]]
 - Closing WebApplicationContext of Spring FrameworkServlet 'momagw'

2005-04-15 09:17:13,873 INFO [org.springframework.web.context.support.XmlWebApplicationContext]
 - Closing application context [WebApplicationContext for namespace 'momagw-servlet'] 

2005-04-15 09:17:13,873 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory]
 - Destroying singletons in factory

2005-04-15 09:17:13,873 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory]
 - Destroying inner beans in factory

2005-04-15 09:17:13,873 INFO [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/momagw]]
 - Closing Spring root WebApplicationContext

2005-04-15 09:17:13,873 INFO [org.springframework.web.context.support.XmlWebApplicationContext]
 - Closing application context [org.springframework.web.context.support.XmlWebApplicationContext;hashCode=31116492]

2005-04-15 09:17:13,873 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory]
 - Destroying singletons in factory

2005-04-15 09:17:13,889 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory]
 - Destroying inner beans in factory

2005-04-15 09:17:13,889 INFO [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/momagw]]
 - Shutting down Log4J

15-Apr-2005 09:17:13 org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context [/momagw]

15-Apr-2005 09:17:21 org.apache.catalina.startup.ContextConfig applicationWebConfig
INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/momagw]


Regards,
Q

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