Ant task for reloading webapps

2003-09-01 Thread Ian . Colledge
I don't know if my last mail got throught so I'll resend.

I'm using Tomcat 3.3 and cannot get the redeploying to work (ie I copy the war over an 
existing one and Tomcat should load the new war). I cannot get it to work. Everywhere 
on the net seems to say it's broken so I'm willing to now accept that now!

My question is this: I have read how Tomcat 4 has an ant task to reload the war file, 
which works, but is this possible with Tomcat 3.3?

Regards,
Ian Colledge

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



Re: Ant task for reloading webapps

2003-09-01 Thread Bill Barker
To get Tomcat to redeploy your war file, you need to set the redeploy=true
attribute on the AutoDeploy element in server.xml.

In theory, you could get an Ant task to re-load the context (assuming that
you've left the 'admin' webapp installed).  It would need to send a request
to /admin/contextAdmin/contextRemove.jsp?removeContextName=context-name
followed by a request to
/admin/contextAdmin/contextAdd.jsp?addContextPath=/context-nameaddContextNa
me=context-name

The 3.3-nightly also has a contextReload.jsp which combines these.  Bug
#21456 has a patch to get it working with 3.3.1(a).

[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I don't know if my last mail got throught so I'll resend.

I'm using Tomcat 3.3 and cannot get the redeploying to work (ie I copy the
war over an existing one and Tomcat should load the new war). I cannot get
it to work. Everywhere on the net seems to say it's broken so I'm willing to
now accept that now!

My question is this: I have read how Tomcat 4 has an ant task to reload the
war file, which works, but is this possible with Tomcat 3.3?

Regards,
Ian Colledge

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.




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