Re: Want to know better way of deploying
Yes I also encounter this problem with Tomcat 5.0.28 on a Wintel box. However it did not occur with 5.0.18. Neither does it occur on MacOS. Looks like something was broken recently, because it's working with 5.0.18 on another Wintel box which I have not upgraded. I believe Tomcat is unable to delete the war file for some reason, so the file remains locked. Maybe this is a global problem on Wintel boxes because I also noticed that in my servlet, deleting a file that I just created to temporarily save an upload, also fails randomly. Could this be related to permissions ? >> I am using ant to create war file. Then i undeploy previous version and >> try >> to deploy new version. But when i try to do this it says >> >> >> FAIL - War file "strutstest.war" already exists on server >> >> >> Inside /webapp - previous uploaded war file is still present. I can >> not >> delete just like that as it says sharing violation. >> >> So i need to stop Tomcat, delete /webapp/{my prev war file}. Then >> start >> the Tomcat again and deploy the new file. >> >> Is there any other soln ? so that w/o restarting my tomcat can i just >> deploy new version ? >> >> regards >> --- Eric VERGNAUD - JLynx Software Cutting-edge technologies and services for software companies web: http://www.jlynx.com --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Want to know better way of deploying
It's been my experience that Windows locks files in use even if you don't ask Windows to. That said, I've also successfully deployed and re-deployed web apps to tomcat running on windows using ant. The tasks I use are 'remove' and 'deploy'. You can get info about using the tomcat manager here: http://localhost:8080/tomcat-docs/manager-howto.html which you could also use manually to un-deploy(remove) and re-deploy your web app without stopping tomcat. -- Isaac Sparrow <[EMAIL PROTECTED]> On Wed, 2004-12-22 at 22:25 -0700, Daniel Watrous wrote: > Manisha, > > I have also had this occur when using Tomcat on Windows, but never with > Tomcat running on Linux. Maybe this is a bug related to Tomcat on > Windows... Are you using Windows? > > Daniel > - Original Message - > From: "Manisha Sathe" <[EMAIL PROTECTED]> > To: > Sent: Wednesday, December 22, 2004 10:21 PM > Subject: Want to know better way of deploying > > > >I am using ant to create war file. Then i undeploy previous version and try > >to deploy new version. But when i try to do this it says > > > > > > FAIL - War file "strutstest.war" already exists on server > > > > > > Inside /webapp - previous uploaded war file is still present. I can not > > delete just like that as it says sharing violation. > > > > So i need to stop Tomcat, delete /webapp/{my prev war file}. Then start > > the Tomcat again and deploy the new file. > > > > Is there any other soln ? so that w/o restarting my tomcat can i just > > deploy new version ? > > > > regards > > > > Manisha > > > > > > > > > > > > > > > > > > __ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > - > 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: Want to know better way of deploying
Now what i am thinking is the whole process i will put inside batch file. I do not know whether doable or not like 1)shutdown tomcat 2)Delete previuos war file 3)Delete /webapp/{my project} directory .. But 'rd' cmd won't work as there r files inside and I do not know why 'del tree' is not working. btw i do not hv administrative access. regards Manisha Manisha Sathe <[EMAIL PROTECTED]> wrote: My original settings r like this only but seems not working, manisha "Goel, Manish Kumar" wrote:Manisha, you you neeed to change some setting in your server.xml in the Host element, make these two attribute true (unpackWARs & autoDeploy) like this unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> cheers Manish -Original Message- From: Manisha Sathe [mailto:[EMAIL PROTECTED] Sent: Thu, 23 Dec 2004 07:50 To: Tomcat Users List Subject: RE: Want to know better way of deploying Thanks all. I am on Windows but Tomcat version is 5.0. So meaning no other solution ? regards Manisha Abhay Hiwarkar wrote: Manisha, Earlier versions of Tomcat lock the file and you can not modify the same while Tomcat is running. Which ver are you running? Abhay -Original Message- From: Goel, Manish Kumar [mailto:[EMAIL PROTECTED] Sent: Thu, 23 Dec 2004 07:29 To: Tomcat Users List Subject: RE: Want to know better way of deploying Daniel, On Linux running application are deleted it's not bug I guess. Manish -Original Message- From: Daniel Watrous [mailto:[EMAIL PROTECTED] Sent: Thursday, December 23, 2004 10:55 AM To: Tomcat Users List Subject: Re: Want to know better way of deploying Manisha, I have also had this occur when using Tomcat on Windows, but never with Tomcat running on Linux. Maybe this is a bug related to Tomcat on Windows... Are you using Windows? Daniel - Original Message - From: "Manisha Sathe" To: Sent: Wednesday, December 22, 2004 10:21 PM Subject: Want to know better way of deploying >I am using ant to create war file. Then i undeploy previous version and >try >to deploy new version. But when i try to do this it says > > > FAIL - War file "strutstest.war" already exists on server > > > Inside /webapp - previous uploaded war file is still present. I can > not > delete just like that as it says sharing violation. > > So i need to stop Tomcat, delete /webapp/{my prev war file}. Then > start > the Tomcat again and deploy the new file. > > Is there any other soln ? so that w/o restarting my tomcat can i just > deploy new version ? > > regards > > Manisha > > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Send holiday email and support a worthy cause. Do good. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Jazz up your holiday email with celebrity designs. Learn more. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
RE: Want to know better way of deploying
My original settings r like this only but seems not working, manisha "Goel, Manish Kumar" <[EMAIL PROTECTED]> wrote:Manisha, you you neeed to change some setting in your server.xml in the Host element, make these two attribute true (unpackWARs & autoDeploy) like this unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> cheers Manish -Original Message- From: Manisha Sathe [mailto:[EMAIL PROTECTED] Sent: Thu, 23 Dec 2004 07:50 To: Tomcat Users List Subject: RE: Want to know better way of deploying Thanks all. I am on Windows but Tomcat version is 5.0. So meaning no other solution ? regards Manisha Abhay Hiwarkar wrote: Manisha, Earlier versions of Tomcat lock the file and you can not modify the same while Tomcat is running. Which ver are you running? Abhay -Original Message- From: Goel, Manish Kumar [mailto:[EMAIL PROTECTED] Sent: Thu, 23 Dec 2004 07:29 To: Tomcat Users List Subject: RE: Want to know better way of deploying Daniel, On Linux running application are deleted it's not bug I guess. Manish -Original Message- From: Daniel Watrous [mailto:[EMAIL PROTECTED] Sent: Thursday, December 23, 2004 10:55 AM To: Tomcat Users List Subject: Re: Want to know better way of deploying Manisha, I have also had this occur when using Tomcat on Windows, but never with Tomcat running on Linux. Maybe this is a bug related to Tomcat on Windows... Are you using Windows? Daniel - Original Message - From: "Manisha Sathe" To: Sent: Wednesday, December 22, 2004 10:21 PM Subject: Want to know better way of deploying >I am using ant to create war file. Then i undeploy previous version and >try >to deploy new version. But when i try to do this it says > > > FAIL - War file "strutstest.war" already exists on server > > > Inside /webapp - previous uploaded war file is still present. I can > not > delete just like that as it says sharing violation. > > So i need to stop Tomcat, delete /webapp/{my prev war file}. Then > start > the Tomcat again and deploy the new file. > > Is there any other soln ? so that w/o restarting my tomcat can i just > deploy new version ? > > regards > > Manisha > > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Send holiday email and support a worthy cause. Do good. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Jazz up your holiday email with celebrity designs. Learn more.
Re: Want to know better way of deploying
For some reason autodeploy does not work anymore when I start using jdbc pooling. (see my autodeploy thread) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Want to know better way of deploying
Manisha, you you neeed to change some setting in your server.xml in the Host element, make these two attribute true (unpackWARs & autoDeploy) like this cheers Manish -Original Message- From: Manisha Sathe [mailto:[EMAIL PROTECTED] Sent: Thu, 23 Dec 2004 07:50 To: Tomcat Users List Subject: RE: Want to know better way of deploying Thanks all. I am on Windows but Tomcat version is 5.0. So meaning no other solution ? regards Manisha Abhay Hiwarkar <[EMAIL PROTECTED]> wrote: Manisha, Earlier versions of Tomcat lock the file and you can not modify the same while Tomcat is running. Which ver are you running? Abhay -Original Message- From: Goel, Manish Kumar [mailto:[EMAIL PROTECTED] Sent: Thu, 23 Dec 2004 07:29 To: Tomcat Users List Subject: RE: Want to know better way of deploying Daniel, On Linux running application are deleted it's not bug I guess. Manish -Original Message- From: Daniel Watrous [mailto:[EMAIL PROTECTED] Sent: Thursday, December 23, 2004 10:55 AM To: Tomcat Users List Subject: Re: Want to know better way of deploying Manisha, I have also had this occur when using Tomcat on Windows, but never with Tomcat running on Linux. Maybe this is a bug related to Tomcat on Windows... Are you using Windows? Daniel - Original Message - From: "Manisha Sathe" To: Sent: Wednesday, December 22, 2004 10:21 PM Subject: Want to know better way of deploying >I am using ant to create war file. Then i undeploy previous version and >try >to deploy new version. But when i try to do this it says > > > FAIL - War file "strutstest.war" already exists on server > > > Inside /webapp - previous uploaded war file is still present. I can > not > delete just like that as it says sharing violation. > > So i need to stop Tomcat, delete /webapp/{my prev war file}. Then > start > the Tomcat again and deploy the new file. > > Is there any other soln ? so that w/o restarting my tomcat can i just > deploy new version ? > > regards > > Manisha > > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Send holiday email and support a worthy cause. Do good. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Want to know better way of deploying
Manisha, Did you try Manager Application ? Look at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager-howto.html Good Luck, Abhay -Original Message- From: Manisha Sathe [mailto:[EMAIL PROTECTED] Sent: Thu, 23 Dec 2004 07:50 To: Tomcat Users List Subject: RE: Want to know better way of deploying Thanks all. I am on Windows but Tomcat version is 5.0. So meaning no other solution ? regards Manisha Abhay Hiwarkar <[EMAIL PROTECTED]> wrote: Manisha, Earlier versions of Tomcat lock the file and you can not modify the same while Tomcat is running. Which ver are you running? Abhay -Original Message- From: Goel, Manish Kumar [mailto:[EMAIL PROTECTED] Sent: Thu, 23 Dec 2004 07:29 To: Tomcat Users List Subject: RE: Want to know better way of deploying Daniel, On Linux running application are deleted it's not bug I guess. Manish -Original Message- From: Daniel Watrous [mailto:[EMAIL PROTECTED] Sent: Thursday, December 23, 2004 10:55 AM To: Tomcat Users List Subject: Re: Want to know better way of deploying Manisha, I have also had this occur when using Tomcat on Windows, but never with Tomcat running on Linux. Maybe this is a bug related to Tomcat on Windows... Are you using Windows? Daniel - Original Message - From: "Manisha Sathe" To: Sent: Wednesday, December 22, 2004 10:21 PM Subject: Want to know better way of deploying >I am using ant to create war file. Then i undeploy previous version and >try >to deploy new version. But when i try to do this it says > > > FAIL - War file "strutstest.war" already exists on server > > > Inside /webapp - previous uploaded war file is still present. I can > not > delete just like that as it says sharing violation. > > So i need to stop Tomcat, delete /webapp/{my prev war file}. Then > start > the Tomcat again and deploy the new file. > > Is there any other soln ? so that w/o restarting my tomcat can i just > deploy new version ? > > regards > > Manisha > > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Send holiday email and support a worthy cause. Do good. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Want to know better way of deploying
Thanks all. I am on Windows but Tomcat version is 5.0. So meaning no other solution ? regards Manisha Abhay Hiwarkar <[EMAIL PROTECTED]> wrote: Manisha, Earlier versions of Tomcat lock the file and you can not modify the same while Tomcat is running. Which ver are you running? Abhay -Original Message- From: Goel, Manish Kumar [mailto:[EMAIL PROTECTED] Sent: Thu, 23 Dec 2004 07:29 To: Tomcat Users List Subject: RE: Want to know better way of deploying Daniel, On Linux running application are deleted it's not bug I guess. Manish -Original Message- From: Daniel Watrous [mailto:[EMAIL PROTECTED] Sent: Thursday, December 23, 2004 10:55 AM To: Tomcat Users List Subject: Re: Want to know better way of deploying Manisha, I have also had this occur when using Tomcat on Windows, but never with Tomcat running on Linux. Maybe this is a bug related to Tomcat on Windows... Are you using Windows? Daniel - Original Message - From: "Manisha Sathe" To: Sent: Wednesday, December 22, 2004 10:21 PM Subject: Want to know better way of deploying >I am using ant to create war file. Then i undeploy previous version and >try >to deploy new version. But when i try to do this it says > > > FAIL - War file "strutstest.war" already exists on server > > > Inside /webapp - previous uploaded war file is still present. I can > not > delete just like that as it says sharing violation. > > So i need to stop Tomcat, delete /webapp/{my prev war file}. Then > start > the Tomcat again and deploy the new file. > > Is there any other soln ? so that w/o restarting my tomcat can i just > deploy new version ? > > regards > > Manisha > > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Send holiday email and support a worthy cause. Do good.
RE: Want to know better way of deploying
Manisha, Earlier versions of Tomcat lock the file and you can not modify the same while Tomcat is running. Which ver are you running? Abhay -Original Message- From: Goel, Manish Kumar [mailto:[EMAIL PROTECTED] Sent: Thu, 23 Dec 2004 07:29 To: Tomcat Users List Subject: RE: Want to know better way of deploying Daniel, On Linux running application are deleted it's not bug I guess. Manish -Original Message- From: Daniel Watrous [mailto:[EMAIL PROTECTED] Sent: Thursday, December 23, 2004 10:55 AM To: Tomcat Users List Subject: Re: Want to know better way of deploying Manisha, I have also had this occur when using Tomcat on Windows, but never with Tomcat running on Linux. Maybe this is a bug related to Tomcat on Windows... Are you using Windows? Daniel - Original Message - From: "Manisha Sathe" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 22, 2004 10:21 PM Subject: Want to know better way of deploying >I am using ant to create war file. Then i undeploy previous version and >try >to deploy new version. But when i try to do this it says > > > FAIL - War file "strutstest.war" already exists on server > > > Inside /webapp - previous uploaded war file is still present. I can > not > delete just like that as it says sharing violation. > > So i need to stop Tomcat, delete /webapp/{my prev war file}. Then > start > the Tomcat again and deploy the new file. > > Is there any other soln ? so that w/o restarting my tomcat can i just > deploy new version ? > > regards > > Manisha > > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Want to know better way of deploying
Daniel, On Linux running application are deleted it's not bug I guess. Manish -Original Message- From: Daniel Watrous [mailto:[EMAIL PROTECTED] Sent: Thursday, December 23, 2004 10:55 AM To: Tomcat Users List Subject: Re: Want to know better way of deploying Manisha, I have also had this occur when using Tomcat on Windows, but never with Tomcat running on Linux. Maybe this is a bug related to Tomcat on Windows... Are you using Windows? Daniel - Original Message - From: "Manisha Sathe" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 22, 2004 10:21 PM Subject: Want to know better way of deploying >I am using ant to create war file. Then i undeploy previous version and try >to deploy new version. But when i try to do this it says > > > FAIL - War file "strutstest.war" already exists on server > > > Inside /webapp - previous uploaded war file is still present. I can not > delete just like that as it says sharing violation. > > So i need to stop Tomcat, delete /webapp/{my prev war file}. Then start > the Tomcat again and deploy the new file. > > Is there any other soln ? so that w/o restarting my tomcat can i just > deploy new version ? > > regards > > Manisha > > > > > > > > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Want to know better way of deploying
Manisha, I have also had this occur when using Tomcat on Windows, but never with Tomcat running on Linux. Maybe this is a bug related to Tomcat on Windows... Are you using Windows? Daniel - Original Message - From: "Manisha Sathe" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 22, 2004 10:21 PM Subject: Want to know better way of deploying I am using ant to create war file. Then i undeploy previous version and try to deploy new version. But when i try to do this it says FAIL - War file "strutstest.war" already exists on server Inside /webapp - previous uploaded war file is still present. I can not delete just like that as it says sharing violation. So i need to stop Tomcat, delete /webapp/{my prev war file}. Then start the Tomcat again and deploy the new file. Is there any other soln ? so that w/o restarting my tomcat can i just deploy new version ? regards Manisha __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Want to know better way of deploying
What version of tomcat are you using? I am using ant to create war file. Then i undeploy previous version and try to deploy new version. But when i try to do this it says FAIL - War file "strutstest.war" already exists on server Inside /webapp - previous uploaded war file is still present. I can not delete just like that as it says sharing violation. So i need to stop Tomcat, delete /webapp/{my prev war file}. Then start the Tomcat again and deploy the new file. Is there any other soln ? so that w/o restarting my tomcat can i just deploy new version ? regards Manisha __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Want to know better way of deploying
I am using ant to create war file. Then i undeploy previous version and try to deploy new version. But when i try to do this it says FAIL - War file "strutstest.war" already exists on server Inside /webapp - previous uploaded war file is still present. I can not delete just like that as it says sharing violation. So i need to stop Tomcat, delete /webapp/{my prev war file}. Then start the Tomcat again and deploy the new file. Is there any other soln ? so that w/o restarting my tomcat can i just deploy new version ? regards Manisha __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com