Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

RE: Tomcat's Ant Tasks [Install]

Robert D. Abernethy IV

2004-01-22

Replies:

What does the name of the context file have to be? The Tomcat 5 deploy
task is automatically looking for "META-INF/context.xml". Will this
name work? Or does the file need the same name as the context?

Rob Abernethy
Dynamic Edge, Inc.

-----Original Message-----
From: Andrew Shirk [mailto:shirk@(protected)]
Sent: Thursday, January 22, 2004 3:22 PM
To: Tomcat Users List
Cc: Robert D. Abernethy IV
Subject: RE: Tomcat's Ant Tasks [Install]
Importance: Low

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}@(protected)/${
a
>pp.name}.xml
>      port="${scp.port}"
>      password="${server.password}"
>      trust="true"/>
>
><scp file="${dist.home}/${app.name}-${app.version}.war"
>
>todir="${server.username}@(protected)/$
{
>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@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.