Yeah, I noticed that although the manager APIs appeared to "work", they
actually didn't work as advertised when I tried to see if my site changed.

So the task invokes the API, but it doesn't actually work because of the
manager code in Tomcat... guess I better do a CVS checkout for tomcat now...
;)

-Chris

----- Original Message -----
From: "Steve Loughran" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Thursday, February 14, 2002 2:54 AM
Subject: Re: Ant task for redeploying web applications on Tomcat


>
> ----- Original Message -----
> From: "Christopher Taylor" <[EMAIL PROTECTED]>
> To: "Jakarta ANT User's List" <[EMAIL PROTECTED]>
> Sent: Wednesday, February 13, 2002 00:12
> Subject: Ant task for redeploying web applications on Tomcat
>
>
> > Hello,
> >
> > I searched the mail archives and couldn't find any tasks for redeploying
> web
> > applications on Tomcat, so I wrote one myself this afternoon (very
> > bare-bones... it doesn't check for errors, all exceptions will stop the
> > build).  If anyone is interested they can download it from
> > http://www.java-internals.com/code/index.html.
> >
> > -Chris
> >
> > P.S. It relies on the http-client commons package available from
Jakarta.
> > I've included it in my distribution of the tomcat-deploy task
> >
> > P.P.S. Any suggestions or contributions would be appreciated.
>
> I have looked into dooing this; right now I can do it with a <get> in the
> system. To get it work properly I think I'd need to change tomcat's
manager
> class. I'd be interested to know how you worked around the problems I
> encountered
>
> 1. the upload mechanism where you provide a url to a remote WAR file does
> not do hot updates after the first upload; from then on tomcat goes 'there
> is a local copy so lets just start that'
>
> 2. the servlet responses are not easily parsable: you might think they are
> but since they are 18in-izabe resource strings they may  be different on
> different locales
>
> The fixes I'd have to do: XML response from the servlet and better reload
> behavior would both be tomcat side; once they were done it would make
sense
> to include the task in the tomcat codebase, rather than ant, so it will be
> in sync better.
>
> -steve
>
>
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to