tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <>
Subject Re: dynamic install and reload (resend)
Date Tue, 12 Aug 2003 01:19:29 GMT

Oh, ok, you are just looking for the basics.  The Catalina Ant Manager 
tasks will allow you to install, stop, start, reload, and remove.  Changing 
hosts is as easy as installing using the URL for a particular host.  You 
can install from a directory outside Tomcat's normal webapps directory or 
deploy a .war file to Tomcat.  There's all kinds of stuff you can 
do.  Check out the appdev example application in the Tomcat docs for 
examples in using the Ant manager tasks.  There should also be lots of 
examples in the Tomcat-user archives.  You can also find some reusable 
examples here...

That is an include file that I include in my main build files using XML 
entity includes.  See also the build.xml and to see 
how it fits in.


At 03:15 PM 8/11/2003 -0700, you wrote:
>Thanks for the response, Jake.
>since Tomcat 5.x is still officially alpha (according to 
>AND this functionality is claimed to be present in 4.1.x,
>I'd like to stick w/ 4.1.x for now - so I'll try a different tack...
>Is anyone USING the custom tomcat management ant tasks under tomcat 4.1.x 
>(ie, deploy, reload)?
>If so, is anyone using those tasks to manage deployment AND redeployment 
>from one host to another
>(redeployment due to reasons as 'small' as simple jsp chgs to as 'large' 
>as class/lib updates) ?
>If so, please provide either a pointer to where I can self-educate 
>(besides the how-to, since i've scoped that out and dont see the answer there)
>or some how-to inline?
> >>> 08/11/03 12:52PM >>>
>I'm not sure if this will solve your problems, but take a look at the
>changes made to Tomcat 5's manager application.  It allows for
>versioning.  I haven't read about this much so I can't tell you the
>details.  I just thought I'd alert you to it.  Grab the latest 5.0.7
>version.  Seems to be pretty stable.
>At 12:26 PM 8/11/2003 -0700, you wrote:
> >Greetings, all:
> >
> >I'm looking for help with the following deployment scenarios:
> >1. Install a web app (.war) into a running tomcat 4.1.x
> >2. reload same web app after arbitrary changes to it
> >
> >For both of these scenarios:
> >1. deployment activity driven from ant script
> >2. ant script executed on host that is NOT the same host as the host that
> >tomcat 4.1.x is running on;
> >in other words, deploy from one host to another, or from 'off-host'.
> >
> >My motivation:
> >This is driven by the desire to deploy essentially the same war to
> >multiple environments (ie, staging, production)
> >without having to hop around from host to host, lugging the war each time
> >(and then still having to install or redeploy).
> >
> >I've been researching this, including reviewing the how-to
> >(
> >and the mail archive, as well as trial and error (in 4.1.24 and 4.1.27) ...
> >
> >The closest I see I can get to my goal
> >is off-host install of a war *manually* (ie, via browser, not via ant
> >script) using manager app of target host
> >
> >Install using the provided custom ant task says it succeeds,
> >and it shows up in the manager list of apps, but it isnt 'started' and I
> >cant start it clicking 'start'; just seems to do nothing.
> >
> >I assume that reload expects the stuff to be reloaded to be located on the
> >target host itself,
> >as theres no property like the @war to point at a war referenced in any of
> >the docs, and the task java src doesnt seem to support it either...
> >
> >Any help?
> >If not, am I the only one with this goal - I mean, I doubt my motiviation
> >is unique... anyone in a similar boat solving this in some way?
> >(It seems like theres already a lot of work done toward this end, and if
> >anyone actually wanted to do what I'm trying to do the support would be
> >there ...)
> >
> >Regardless of the outcome I'd be happy to update the how-to (or whatever)
> >to clarify this point for future people who may be curious like I was here;
> >just let me know if theres any interest.
> >
> >Thanks,
> >Steve
> >
> >ps - i didnt see this go thru to the archives (never even got my BCC) so
> >i'm resending; i apologize if duplication or other problems occur...
>To unsubscribe, e-mail:
>For additional commands, e-mail:

View raw message