tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Shirk <>
Subject RE: Tomcat's Ant Tasks [Install]
Date Thu, 22 Jan 2004 20:21:41 GMT
At 12:47 PM 1/22/2004, you wrote:
>Are you using Tomcat 4 or Tomcat 5?  For Tomcat 5, the deploy task works
>great.  However, for Tomcat 4, I have found there is no "perfect"
>solution.  The install task for Tomcat 4 is for installing web
>applications found on the same server as Tomcat.  The deploy task for
>Tomcat 4 is for installing web applications to a remote Tomcat server,
>but it does not have a "config" parameter.  Therefore you cannot install
>a web application remotely using a context file.

Sure you can. Just put in META-INF and use the deploy task.

>I have found the best method is to copy the WAR file and the context
>file to the same server that Tomcat is running on and then use the
>install task.
><scp file="${web.home}/META-INF/context.xml"
>         port="${scp.port}"
>         password="${server.password}"
>         trust="true"/>
><scp file="${dist.home}/${}-${app.version}.war"
>         port="${scp.port}"
>         password="${server.password}"
>         trust="true"/>
><install url="${manager.url}"
>         username="${manager.username}"
>         password="${manager.password}"
>         path="${app.path}"
>         config="file:${catalina.home}/webapps/${}.xml
>         war="${}.war"/>
>Rob Abernethy
>Dynamic Edge, Inc.

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

View raw message