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: <[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] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
