D'oh! Lets see - how many times did I fly past this info: ... nah not worth rehashing.
Score 1 for Jake, and score 1 for the steganographic how-to. Hope I can get you back some day soon... Thanks, and cheers... Steve >>> [EMAIL PROTECTED] 08/11/03 10:38PM >>> the <deploy> task is what you want if the Ant build is not on the same machine as Tomcat. It does an HTTP PUT to a remote server. Just change the manager url to deploy to different hosts. Jake At 09:46 PM 8/11/2003 -0700, you wrote: >Jake - thanks for your persistance here... > >While your feedback is chock-full of cheery helpfulness, you've missed my >one crucial requirement - >that the server running the ant tasks (and containing the .war to be >installed or reloaded) >is NOT the tomcat server. > >I checked out your link >(http://barracudamvc.org/cvs/Barracuda/src/catalina-tasks.incl?rev=1.6&content-type=text/vnd.viewcvs-markup) >and the tomcat example app >(http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/sample/build.xml). > >I'll quote your catalina-tasks.incl comments (prior to your >catalina-install target): >"NOTE: This target will only succeed if it is run from the same server that > Tomcat is running on." > >That tells me that the essence of what I'm trying to do cannot be done - >I'll quote my original post >"... >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). >..." >(note: I used 'host' where you used 'server' in your comment above) > >I see the (very flexible) custom ant task support for installation and >reloading of a .war - >(just as I did when I first read the tomcat-manager how-to >at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html) > >I just dont see how to do it from one machine to another. > >Thanks again for taking the time - >If you (or anyone else, of course) have any more ideas, I welcome them... > >Steve > > > >>> [EMAIL PROTECTED] 08/11/03 06:19PM >>> > >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... >http://barracudamvc.org/cvs/Barracuda/src/catalina-tasks.incl?rev=1.6&content-type=text/vnd.viewcvs-markup > >That is an include file that I include in my main build files using XML >entity includes. See also the build.xml and sample.build.properties to see >how it fits in. > >Jake > > > >At 03:15 PM 8/11/2003 -0700, you wrote: > >Thanks for the response, Jake. > > > >However, > >since Tomcat 5.x is still officially alpha (according to > >http://jakarta.apache.org/tomcat/index.html) > >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? > > > >Thanks, > >Steve > > > > >>> [EMAIL PROTECTED] 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. > > > >Jake > > > >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 > > >(http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html) > > >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: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
