The trick is to use the deploy task rather than the install task, and
include the context.xml (make sure it's named context.xml) in the META-INF
directory inside the war file. Tomcat will find the context file, and add
the contents to the server.xml file. Then, use redeploy to deploy changes,
}.xml
war=${app.name}.war/
Rob Abernethy
Dynamic Edge, Inc.
-Original Message-
From: Andrew Shirk [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 11:46 AM
To: [EMAIL PROTECTED]
Cc: Matt Raible
Subject: Re: Tomcat's Ant Tasks [Install]
The trick is to use the deploy
I'm guessing this is a Tomcat 5 thing? I tried the context.xml (in my war's META-INF
directory) thing in Tomcat 4.1.29 and it didn't work, but maybe I need to use Tomcat's
Ant task
for this to work?
Also, it is possible to use Tomcat 5's catalina-ant.jar to deploy to Tomcat 4's
manager app -
At 01:16 PM 1/22/2004, you wrote:
I'm guessing this is a Tomcat 5 thing? I tried the context.xml (in my
war's META-INF
directory) thing in Tomcat 4.1.29 and it didn't work, but maybe I need to
use Tomcat's Ant task
for this to work?
Yes, you need to use the Ant task (deploy). I use it daily
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
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
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
Robert D. Abernethy IV wrote:
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?
No, it's context.xml always. It will then be copied (and renamed)
Dynamic Edge, Inc.
-Original Message-
From: Andrew Shirk [mailto:[EMAIL 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
Is it possible to use the install ant task to deploy to a remote server? I would
think so, but it
seems that the Manager app of Tomcat tries to load the context file on the remote
server...
install url=${tomcat.manager.url}
username=${tomcat.username}
]
Sent: June 24, 2003 6:19 PM
To: '[EMAIL PROTECTED]'
Subject: Tomcat's Ant Tasks
I'm having trouble using Tomcat's Ant Tasks. I've written up a wiki page on
how I'm using them and the problems I'm experiencing. Any help is
appreciated.
http://raibledesigns.com/wiki/Wiki.jsp?page=TomcatAntTasks
.
-Original Message-
From: Raible, Matt [mailto:[EMAIL PROTECTED]
Sent: June 24, 2003 6:19 PM
To: '[EMAIL PROTECTED]'
Subject: Tomcat's Ant Tasks
I'm having trouble using Tomcat's Ant Tasks. I've written up a wiki page on
how I'm using them and the problems I'm experiencing. Any help
Do you use Tomcat? Do you start Tomcat with -security?
-Original Message-
From: Tim Shaw [mailto:[EMAIL PROTECTED]
Sent: June 25, 2003 11:34 AM
To: Tomcat Users List
Subject: Re: Tomcat's Ant Tasks
Personally, I use deploy/undeploy, even during development - saves
worrying about
/undeploy in TC5, so
I guess I found the right route ...
Phillip Qin wrote:
Do you use Tomcat? Do you start Tomcat with -security?
-Original Message-
From: Tim Shaw [mailto:[EMAIL PROTECTED]
Sent: June 25, 2003 11:34 AM
To: Tomcat Users List
Subject: Re: Tomcat's Ant Tasks
Personally, I use
Users List
Subject: Re: Tomcat's Ant Tasks
I haven't used the -security - access is by trusted souls (and
developers :-) on a closed network. I would tend to treat this as
othogonal to the development anyway, much as DB access and configuration
is within the J2EE environments.
I see install etc
I'm having trouble using Tomcat's Ant Tasks. I've written up a wiki page on
how I'm using them and the problems I'm experiencing. Any help is
appreciated.
http://raibledesigns.com/wiki/Wiki.jsp?page=TomcatAntTasks
Thanks,
Matt
.
Yoav Shapira
--- Raible, Matt [EMAIL PROTECTED] wrote:
I'm having trouble using Tomcat's Ant Tasks. I've written up a wiki page on
how I'm using them and the problems I'm experiencing. Any help is
appreciated.
http://raibledesigns.com/wiki/Wiki.jsp?page=TomcatAntTasks
Thanks,
Matt
17 matches
Mail list logo