tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Shirk <sh...@ncsa.uiuc.edu>
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"
>
>todir=${server.username}@${server.hostname}:${catalina.home}/webapps/${a
>pp.name}.xml
>         port="${scp.port}"
>         password="${server.password}"
>         trust="true"/>
>
><scp file="${dist.home}/${app.name}-${app.version}.war"
>
>todir="${server.username}@${server.hostname}:${catalina.home}/webapps/${
>app.name}.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/${app.name}.xml
>         war="${app.name}.war"/>
>
>
>Rob Abernethy
>Dynamic Edge, Inc.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message