RE: Can't Undeploy Struts Applications

2005-10-19 Thread Harry Hartley
I found the solution in a post to another thread from
[EMAIL PROTECTED]


Are you using Windows? Than this it no tomcat specific problem. yout
struts.jar is not deleted because windows locks this file. i had the same
problem. the solution is to add the directory META-INF to your project. put
a file named context.xml into it with the following lines: 

Context reloadable=true antiResourceLocking=true /Context

when the attribute antiResourceLocking is set to true tomcat does not use
this one but works with an internal copy of it so that windows does not lock
it. then everything works fine...

Peter

 -Original Message-
 From: Prashant Reddy [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 20, 2005 12:47 PM
 To: user@struts.apache.org
 Subject: RE: Can't Undeploy Struts Applications
 
 
 +1. Same here,
 
 For me struts-applications dont get re-deployed because the jar -
 commons-digester.jar is still locked.
 
 Donot think its a tomcat problem, coz I am using a different Servlet
 engine.
 
 -Prashant
 -Original Message-
 From: Harry Hartley [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 20, 2005 10:24 AM
 To: user@struts.apache.org; tomcat-user@jakarta.apache.org
 Subject: Can't Undeploy Struts Applications
 
 
 Is this a bug?
 
 
 
 So, I deploy the struts-blank webapp to my webapps directory under tomcat.
 Everything works fine.
 
 
 
 Then I try to undeploy it under the manager, and it responds the a
 message,
 context undeployed.
 
 
 
 But when I do a list under the tomcat manager it is still there.
 
 
 
 If I look under the webapps directory, my struts-blank directory is still
 there.
 
 
 
 I look under the application directory under webapps, and I find that the
 commons-digester.jar, commons-validator.jar, and struts.jar are still
 there.
 If I try to delete them, I cannot. My operating complains that these files
 are still in use by another application.
 
 
 
 I shut down tomcat, and presto, the application is really undeployed.
 
 
 
 I actually found this problem working on my own application, and found
 that
 the build script failed to (re) deploy even though I undeployed an
 application.
 
 
 
 Thus I have two questions:
 
 1)   If an application is not fully undeployed, shouldn't the tomcat
 manager complain about it with a message or warning, rather than just ok?
 
 2)   Is there a known issue/bug with tomcat not releasing .jar
 resources
 (specifically the ones mentioned above) of applications being undeployed?
 
 
 
 I have searched under bugzilla, and there seems to be a undeploy bug
 identified and fixed, but I am not sure if it applies to what I have
 identified here or not.
 
 
 
 Versions:
 
 Struts 1.2.4
 
 Tomcat: 5.5
 
 J2SE: 5.0
 
 
 
 Any Help?!?!?
 
 
 
 Warm Regards,
 
 
 
 Harry
 
 
 
 
 
 
 
 
 
 
 
 -
 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]



RE: Can't Undeploy Struts Applications

2005-05-20 Thread Prashant Reddy

+1. Same here,

For me struts-applications dont get re-deployed because the jar -
commons-digester.jar is still locked.

Donot think its a tomcat problem, coz I am using a different Servlet engine.

-Prashant
-Original Message-
From: Harry Hartley [mailto:[EMAIL PROTECTED]
Sent: Friday, May 20, 2005 10:24 AM
To: user@struts.apache.org; tomcat-user@jakarta.apache.org
Subject: Can't Undeploy Struts Applications


Is this a bug?



So, I deploy the struts-blank webapp to my webapps directory under tomcat.
Everything works fine.



Then I try to undeploy it under the manager, and it responds the a message,
context undeployed.



But when I do a list under the tomcat manager it is still there.



If I look under the webapps directory, my struts-blank directory is still
there.



I look under the application directory under webapps, and I find that the
commons-digester.jar, commons-validator.jar, and struts.jar are still there.
If I try to delete them, I cannot. My operating complains that these files
are still in use by another application.



I shut down tomcat, and presto, the application is really undeployed.



I actually found this problem working on my own application, and found that
the build script failed to (re) deploy even though I undeployed an
application.



Thus I have two questions:

1)   If an application is not fully undeployed, shouldn't the tomcat
manager complain about it with a message or warning, rather than just ok?

2)   Is there a known issue/bug with tomcat not releasing .jar resources
(specifically the ones mentioned above) of applications being undeployed?



I have searched under bugzilla, and there seems to be a undeploy bug
identified and fixed, but I am not sure if it applies to what I have
identified here or not.



Versions:

Struts 1.2.4

Tomcat: 5.5

J2SE: 5.0



Any Help?!?!?



Warm Regards,



Harry











-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]