ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mattos, John" <>
Subject RE: Tomcat manager tasks
Date Mon, 25 Aug 2003 12:41:52 GMT
I did this with 4.1.27, but I cheated. I did a normal full install of Tomcat
using the installer, including the services, then took the resulting
directory c:\tomcat and zipped it up. Now all I have to do deploy is 

1. unzip to a directory
2. install the service using installTomcatServices.bat

@echo off

if "%1" == "" goto eof
if "%2" == "" goto eof
if "%3" == "" goto eof
if "%4" == "" goto eof
if"%INDEMAND_HOME%" == "" goto eof

%2\bin\tomcat.exe -install %4 %1\jre\bin\%3\jvm.dll
-Dcatalina.home=%2 -start org.apache.catalina.startup.Bootstrap -params
start -stop org.apache.catalina.startup.Bootstrap -params stop -out
%2\logs\stdout.log -err %2\logs\stderr.log

REM %2\bin\tomcat.exe -install %4 %1\jre\bin\%3\jvm.dll
-Dcatalina.home=%2 -Dindemand.env=%INDEMAND_HOME%\
-start org.apache.catalina.startup.Bootstrap -params start -stop
org.apache.catalina.startup.Bootstrap -params stop -out %2\logs\stdout.log
-err %2\logs\stderr.log

goto eof


Then I use the exec command to do a "net start" on the service I just
installed. Simple and effective.

Then, when I install  a new version of my app, I check out of CVS, stop the
service, unwar, and start the service.

If you want more details let me know. My deployment script is interactive
and menu driven...


-----Original Message-----
From: Jacob Kjome [] 
Sent: Sunday, August 24, 2003 1:55 PM
To: Ant Users List
Subject: Re: Tomcat manager tasks

You can try these tasks..*checkout*/Barracuda/src/catalina-tasks.incl?rev

Note that install and remove have been deprecated in Tomcat-5 and reload in 
Tomcat-5 literally does a start, then stop, so it is literally the same as 
a start/stop sequence, unlike the current situation in Tomcat-4.1.xx.


At 04:54 PM 8/24/2003 +0200, you wrote:

>Hi all,
>I am in the process of trying to control the Tomcat manager from Ant.
>I am using TC 4.1.27 and the only documentation, I can find, is this:
>Currently, I can not do "install" or "start", but a "deploy" succeeds. When
>I try to "undeploy", I get the message -
>"FAIL - Cannot remove document base for path /T"
>The path "/T" is correct, because it is my selection ant it can actuelly be
>seen from within a browser at "http://localhost:8080/manager/html/list"
>against a local TC instance. It just.... fails with no apparent reason.
>Anyone here have the 10 Ant tasks for Tomcat 4.1.x operational?
>   Morten Sabroe Mortensen
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message