You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2013/11/22 02:54:10 UTC

Re: [OT] How to Deploy an Update to War File

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Leo,

On 11/21/13, 6:06 PM, Leo Donahue - OETX wrote:
>> -----Original Message----- From: Daniel Mikusa
>> [mailto:dmikusa@gopivotal.com] Subject: Re: How to Deploy an
>> Update to War File
>> 
>> You can use parallel deployment with WAR files.  Just name the
>> war file "webapps/<context-path>##<version>.war".
>> 
> I need to try this... very cool.

It is. Mark worked a lot of magic into that feature.

Sadly for me, my primary web application is complicated enough and
database changes are big enough that we have to take our applications
completely off-line in order to to upgrades. I can't use
parallel-deployment myself.

I have dreams of zero-downtime upgrades, but managing such things with
a mutating database is a tricky proposition. It's worth the 5-minute
downtime to avoid weeks of planning and testing that two versions of
the same application can run together nicely.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSjrlCAAoJEBzwKT+lPKRY/BYQALe4/3JTyc7bMk8eUcXlFcEl
va3E3BiQXFIDJzj/jIpHZHFu/Payos7VUx7/oY36MHaOGTKTwzp00FseJVp9LpLB
jD6iYWxAzydCtZb6YhfxUGFjPz1y70AD5trp27iEsvgKvMqk/QH+IeJJiyKmCFaC
HDlkLbxeNHbOvnV0Ahy+7Kdfz5OSnWg2AB7yfWetoNgelb2z00rdX6A5AosNU3BD
Y2zvtkJOxl+/FoNufNVbdU5Elc6Um7g4oGuULe+BakiRm8Reh/t5580nfXF5xWuK
TTLSFuFi9OCNauU/u2IFdU1y8ZyaPxJQbdslDXOYH2GcdeUDHewPqUUuDIWrJxk6
48b94WQjk0TlcVI2jdtst04UckcjHyRoWSmbhLFN/G8UpGiCAnFQp/U4HZ1YFtfv
dN1Q+bPgeUJQ7VtkUCiQR40YlPUYXM1GgIR6WuIt5zMtiLMsW1X9xcRjaBJjFsTQ
AQ00QPAqBdZryDKxOP8pFIXjCb5ha5OnxGPNwIoU8QRAt7C009THCif3n8RrLZix
Knop2V12TAsYHp10XK98o2rMs+Oq+UwjU4fdhJM8RKCy9m55XejixO/LwVp8ZPMK
/yXq0CuxuiT1LOrJ/6kdr0xySskBEOHgXguEtn6ATgBEUzBao2CZMm4Iwqfe+MYS
OVqdD5BQ4KFNYYlGA+mU
=T7Vl
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: [OT] How to Deploy an Update to War File

Posted by Crystal Maramba <cm...@acumenllc.com>.

-----Original Message-----
From: Christopher Schultz [mailto:chris@christopherschultz.net] 
Sent: Thursday, November 21, 2013 5:54 PM
To: Tomcat Users List
Subject: Re: [OT] How to Deploy an Update to War File

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Leo,

On 11/21/13, 6:06 PM, Leo Donahue - OETX wrote:
>> -----Original Message----- From: Daniel Mikusa
>> [mailto:dmikusa@gopivotal.com] Subject: Re: How to Deploy an
>> Update to War File
>> 
>> You can use parallel deployment with WAR files.  Just name the
>> war file "webapps/<context-path>##<version>.war".
>> 
> I need to try this... very cool.

It is. Mark worked a lot of magic into that feature.

Sadly for me, my primary web application is complicated enough and
database changes are big enough that we have to take our applications
completely off-line in order to to upgrades. I can't use
parallel-deployment myself.

I have dreams of zero-downtime upgrades, but managing such things with
a mutating database is a tricky proposition. It's worth the 5-minute
downtime to avoid weeks of planning and testing that two versions of
the same application can run together nicely.

- -chris

Thanks. I knew that already. I just wanted to see the steps that others take. Sometimes after I copy and paste the .war file in the \webapps directory it requires a restart to the tomcat7 service. Not sure why. Is this normal behavior? 

I read the Tomcat website but I was confused with this information in regards to the context:
"In order to configure a Context within Tomcat a Context Descriptor is required. A Context Descriptor is simply an XML file that contains Tomcat related configuration for a Context, e.g naming resources or session manager configuration. In earlier versions of Tomcat the content of a Context Descriptor configuration was often stored within Tomcat's primary configuration file server.xml but this is now discouraged (although it currently still works)."
Source: http://tomcat.apache.org/tomcat-7.0-doc/deployer-howto.html#Deploying_using_the_Client_Deployer_Package

Currently, I have a context parameter that supposed to auto deploy the war files, see below:
"<Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">"

But the information above says it is not recommended. 
-crys

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSjrlCAAoJEBzwKT+lPKRY/BYQALe4/3JTyc7bMk8eUcXlFcEl
va3E3BiQXFIDJzj/jIpHZHFu/Payos7VUx7/oY36MHaOGTKTwzp00FseJVp9LpLB
jD6iYWxAzydCtZb6YhfxUGFjPz1y70AD5trp27iEsvgKvMqk/QH+IeJJiyKmCFaC
HDlkLbxeNHbOvnV0Ahy+7Kdfz5OSnWg2AB7yfWetoNgelb2z00rdX6A5AosNU3BD
Y2zvtkJOxl+/FoNufNVbdU5Elc6Um7g4oGuULe+BakiRm8Reh/t5580nfXF5xWuK
TTLSFuFi9OCNauU/u2IFdU1y8ZyaPxJQbdslDXOYH2GcdeUDHewPqUUuDIWrJxk6
48b94WQjk0TlcVI2jdtst04UckcjHyRoWSmbhLFN/G8UpGiCAnFQp/U4HZ1YFtfv
dN1Q+bPgeUJQ7VtkUCiQR40YlPUYXM1GgIR6WuIt5zMtiLMsW1X9xcRjaBJjFsTQ
AQ00QPAqBdZryDKxOP8pFIXjCb5ha5OnxGPNwIoU8QRAt7C009THCif3n8RrLZix
Knop2V12TAsYHp10XK98o2rMs+Oq+UwjU4fdhJM8RKCy9m55XejixO/LwVp8ZPMK
/yXq0CuxuiT1LOrJ/6kdr0xySskBEOHgXguEtn6ATgBEUzBao2CZMm4Iwqfe+MYS
OVqdD5BQ4KFNYYlGA+mU
=T7Vl
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org