ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: Catalina install (was RE: Re[2]: cruisecontrol vs anthill)
Date Thu, 17 Oct 2002 00:15:52 GMT

----- Original Message -----
From: "Paul Christmann" <paul@priorartisans.com>
To: "'Ant Users List'" <ant-user@jakarta.apache.org>; "'Jacob Kjome'"
<hoju@visi.com>
Sent: Wednesday, October 16, 2002 3:05 PM
Subject: Catalina install (was RE: Re[2]: cruisecontrol vs anthill)


> > From: "Jacob Kjome" <hoju@visi.com>
> > > Hmmm.... Why not just use the catalina-ant tasks to install the apps
> > > remotely without mucking with tomcat's webapps directory?  I use the
> > > following target to install my app:
> > >
> > > <target name="install" depends="compile,manager.init"
> > >             description="Install application to servlet container" >
> > >         <install
> > >             url="${manager.url}"
> > >             username="${manager.username}"
> > >             password="${manager.password}"
> > >             config="${app.ccf}"
> > >             path="${app.path}" />
> > > </target>
> > >
> >
> >
> > -----Original Message-----
> > From: Steve Loughran [mailto:steve_l@iseran.com]
>
> > ...does that persist? webapp stuff remains after restarts,
> > which makes it the place to put production stuff
>
> I assume you are describing the following problem, which I wrestled with
> for a while and you talk about in Chapter 7:
>
> The manager <install> task does a hot installation, allowing you to
> install the service without bringing down the web server.  But if you
> then *do* bring down the web server, the installed service will not be
> available on a restart, since the <install> task didn't cause anything
> to get written to disk.  So, if you want persistence, you need to
> extract files explicitly to the webapps folder (either the war itself,
> or the contents of the war).

yeah, that was me,


> Solution: The Catalina <deploy> task *does* persist the installed
> service.  In addition to a "live" installation, it actually modifies
> server.xml configuration entries to point to the location of the file(s)
> that you deploy.  So, a hard stop/restart of the service will still
> reference the files that you deployed.

OK.  I should look at those again. I had problems with them because you
couldnt uninstall something that wasnt there, and I like my uninstalls,
especially when I have helper threads that need to shut down.

thanks for the info

-steve



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message