Yo don't have to restart anything to redeploy your WAR
What I see is that your autoDeploy is ON. Just drop the new WAR , tomcat
will do all the work for you.

 

-----Original Message-----
From: Lenny Wintfeld [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 30, 2007 2:07 PM
To: users@tomcat.apache.org
Subject: Quesion on starting tomcat (as a windows service) from Ant

I'm running tomcat locally on WinXP as a service. Now I'm starting to do
webapp development.

By experiment I've found the way to re-deploy a webapp  when running
Tomcat as a service is:

Stop Tomcat service (with Procrun)
Remove the subdirectory of the  webapp to be updated from  .../Tomcat
5.5/webapps subdirectory Drop the war into .../Tomcat 5.5/webapps
subdirectory Start Tomcat (with Procrun)

And this works fine.

I'd like to do the same sequence inside Ant as part of the webapp build.

I can stop the Tomcat service from the commandline with  "tomcat5.exe
//SS//" and I expect that will work from inside Ant too.

But how do I *restart*  Tomcat WinXP service from inside Ant?
"tomcat5.exe //SS//" doesn't work (the service how-to says it's called
only from the Service Manager). I hesitate to try "tomcat5.exe //IS//" 
until someone gives me the go-ahead After all,  I've *stopped* tomcat
with //SS// not uninstalled the service ... and why install something
(with //IS//) that's already there?

Thanks in advance for your help.

Lenny Wintfeld


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



This message (including any attachments) contains confidential
and/or proprietary information intended only for the addressee.
Any unauthorized disclosure, copying, distribution or reliance on
the contents of this information is strictly prohibited and may
constitute a violation of law.  If you are not the intended
recipient, please notify the sender immediately by responding to
this e-mail, and delete the message from your system.  If you
have any questions about this e-mail please notify the sender
immediately.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to