Same problem, even using the struts blank application. Perhaps some JAR resources is not correctly closed. Yet it is a known problem of Tomcat on Windows, it would be great if Struts 2 apps could avoid it.
Here's a workaround which worked for me, even if it is not totally satisfying: create a META-INF directory in your web app and create a file named context.xml with this code in it: <Context reloadable="true" antiJARLocking="true" antiResourceLocking="true"> </Context> When deploying your web app as a WAR, Tomcat will copy this file in CATALINA_HOME/conf/Catalina/localhost (depending on your Tomcat configuration: engine, host...) You can find all the details in the tomcat documentation (http://tomcat.apache.org/tomcat-5.5-doc/config/context.html) Hope it helps Arnaud -----Message d'origine----- De : hezjing [mailto:[EMAIL PROTECTED] Envoyé : lundi 16 juillet 2007 11:46 À : Struts Users Mailing List Objet : Re: [S2] Struts's JAR not deleted when undeployed Yes, I'm having this problem almost every time I undeploy the application on Windows XP. The S2 application is using Spring, Hibernate, MySQL and etc. May I know what are you expecting in the test environment? Simply a WAR file to simulate the problem? with database schema and etc? :-) On 7/16/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > 2007/7/16, hezjing <[EMAIL PROTECTED]>: > > > > Well, I'm not sure if this is the Tomcat's problem. > > > > Usually this happens under Windows, when a JAR is opened (for example, to > read a file) and it is never closed when finished (it will be closed by the > garbage collector, but it could pass AFTER the undeployment). > It could be a Struts bug. Can you prepare a small test environment, see if > you can replicate the problem and open a JIRA issue? > > Antonio > -- Hez --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]