tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Question about webapp deployment or re-deployment
Date Mon, 23 Feb 2004 23:41:14 GMT

Thanks for the info.  I'm already using the web interface to deploy my
webapp in both Tomcat 4.1.29 and 5.0.18.   My question is, if I need to
deploy an "upgrade", let's say, to the webapp how can I deploy the new
version of the webapp:

*) without using ant
*) without losing the changes made to web.xml
*) preferably without having to restart Tomcat or removing the webapp and
re-installing the new version of the webapp

I would like to retain the data sources I've defined as well as the web.xml
changes I've made as I "upgrade" my webapp as new versions are developed.

>From what I've read, people seem to be using ant to do this kind of work.
Is ant required for what I need to accomplish?

Thanks in advance...



             "Shapira, Yoav"                                               
             .com>                                                      To 
                                       "Tomcat Users List"                 
             02/04/2004 05:47          <>    
             AM                                                         cc 
             Please respond to         RE: Question about webapp           
               "Tomcat Users           deployment or re-deployment         

You can use the manager's webapp HTML interface without ant.  Connect to
http://yourhost:yourport/manager/deploy?path=/foo with an HTTP PUT
request containing your WAR.  See

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>Sent: Tuesday, February 03, 2004 7:14 PM
>Subject: Question about webapp deployment or re-deployment
>Hi!  I've got Tomat 4.1 .29 and Tomcat 5.0.18 up and running on a
>2000 server to test a webapp we're developing as well as learn some of
>environmental "issues" that might impact our app when we deploy it in
>production environments.
>Currently, we use ant to build a war file that is then used to install
>webapp via the Tomcat Manager web interface.    We upload the war
>with the Manager and it deploys the webapp.    Then I stop the webapp
>update web.xml to configure some data sources and some servlet mappings
>restart Tomcat and the webapp.  I'm working with Tomcat 4.1.29 when
>this.   That works fine and my webapp runs just fine.   Now, when I
>changes to the webapp that I need to get installed, I'm not sure how to
>"upgrade" (effectively) the running webapp.   I've been removing it and
>re-deploying it but that results in the web.xml changes being lost.
>I can't guarantee ant will be installed on the target server, so I'm
>to develop an installation and upgrade process that doesn't involve
>When we install our webapp in a production environment, we'll most
>have a pre-built war on a CD that we install from.
>I've been reading a TON of great info on re-deploying webapps but they
>seem to involve running ant to handle the re-deployment.    Will I be
>"forced" to use ant or is there another way to 'upgrade' or "re-deploy"
>existing running webapp?
>I will be working on procedures for Tomcat 4.1.29 and Tomcat 5.0.18 as
>think they handle re-deployment differently, but I'm not sure.
>Thanks in advance for your time and help.
>To unsubscribe, e-mail:
>For additional commands, e-mail:

This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an) intended
recipient, please immediately delete this e-mail from your computer system
and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message