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
As I said in my previous post, I gave up using tomcat ant task to deploy my
app on production box due to the difficulty of granting permission to war.
If you don't start tomcat -security, catalina ant tasks are still the
easiest way to go.
My lesson learnt from using Catalina tasks is, most of
Personally, I use deploy/undeploy, even during development - saves
worrying about copying files around and mapping network drives etc
(apart from anything, I run load-tests automatically on both W2K and
Linux servers, scripted from Ant). This is the way I work remotely/in
production, and it's
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
Howdy,
I don't particularly feel like download Appfuse and contributing patches to it
at the momeny -- no spare bandwidth ;( However, a few comments on your wiki
page:
- If you have something that's working and are happy with, there's no need to
change to these ant tasks.
- Reload is not
15 matches
Mail list logo