----- Original Message ----- From: "Paul Christmann" <[EMAIL PROTECTED]> To: "'Ant Users List'" <[EMAIL PROTECTED]>; "'Jacob Kjome'" <[EMAIL PROTECTED]> Sent: Wednesday, October 16, 2002 3:05 PM Subject: Catalina install (was RE: Re[2]: cruisecontrol vs anthill)
> > From: "Jacob Kjome" <[EMAIL PROTECTED]> > > > 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:[EMAIL PROTECTED]] > > > ...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:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>