You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by hezjing <he...@gmail.com> on 2007/07/16 11:18:05 UTC
[S2] Struts's JAR not deleted when undeployed
Hi!
I'm using Tomcat 5.5.23, and Ant 1.7.0 to deploy, start, stop and
undeploy the S2 application.
>From the console, it seems that the application was stopped and
undeployed successfully.
Looking at the webapps directory, everything has been deleted except
the S2's JARs in Tomcat 5.5\webapps\myproject\WEB-INF\lib:
struts2-core-2.0.8.jar and struts2-spring-plugin-2.0.8.jar
Well, I'm not sure if this is the Tomcat's problem.
--
Hez
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: [S2] Struts's JAR not deleted when undeployed
Posted by Arnaud Cogoluegnes <ac...@sqli.com>.
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:hezjing@gmail.com]
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 <an...@gmail.com> wrote:
> 2007/7/16, hezjing <he...@gmail.com>:
> >
> > 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [S2] Struts's JAR not deleted when undeployed
Posted by Antonio Petrelli <an...@gmail.com>.
2007/7/16, hezjing <he...@gmail.com>:
>
> May I know what are you expecting in the test environment? Simply a
> WAR file to simulate the problem? with database schema and etc?
Yes, a very simple WAR file, preferably without database. And don't forget
the instructions to replicate the problem :-)
Antonio
Re: [S2] Struts's JAR not deleted when undeployed
Posted by hezjing <he...@gmail.com>.
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 <an...@gmail.com> wrote:
> 2007/7/16, hezjing <he...@gmail.com>:
> >
> > 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [S2] Struts's JAR not deleted when undeployed
Posted by Antonio Petrelli <an...@gmail.com>.
2007/7/16, hezjing <he...@gmail.com>:
>
> 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