You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael Martin <mi...@essdocs.com> on 2013/08/29 13:18:56 UTC

Deploy a .WAR to multiple Tomcat instances

I have one .WAR to routinely deploy across various Tomcat Instances on different servers.

I believe FarmWarDeployer can only be used within a cluster. From what i understand, a cluster will require a HTTPD server with a mod_jk configured. Would anyone know of a way to achieve this without the need to configure a cluster? We have no desire to change traffic routing to go through an HTTPD as our load balancer handles traffic fine as it is. Ideally, i'd also like the context.xml to be distributable, so changing on one instance will update on all others...but i suspect this will require a cluster configured.

Any help/ideas appreciated!
Mike

Re: Deploy a .WAR to multiple Tomcat instances

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

André,

On 8/29/13 7:50 AM, André Warnier wrote:
> Michael Martin wrote:
>> I have one .WAR to routinely deploy across various Tomcat
>> Instances on different servers.
>> 
>> I believe FarmWarDeployer can only be used within a cluster. From
>> what i understand, a cluster will require a HTTPD server with a
>> mod_jk configured. Would anyone know of a way to achieve this
>> without the need to configure a cluster? We have no desire to
>> change traffic routing to go through an HTTPD as our load
>> balancer handles traffic fine as it is. Ideally, i'd also like
>> the context.xml to be distributable, so changing on one instance
>> will update on all others...but i suspect this will require a
>> cluster configured.
>> 
>> Any help/ideas appreciated! Mike
>> 
> 
> I believe that this page should contain all that you want :
> 
> https://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Deploy_A_New_Application_Remotely

+1

Using
> 
the manager app can be trivially scripted using something like
wget, curl, etc. to push a WAR file to a list of URL endpoints. Bonus
points for using Tomcat's parallel deployment and automatic-rollback
to the previous version if one of the servers doesn't upgrade properly.

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

iQIcBAEBCAAGBQJSH5lmAAoJEBzwKT+lPKRYYwMP/A99aenwSwdEgBE5Xh5j5x74
lCriCy29OxwQ7oS0LCJV80gLLkSGnVppI2H3ewXm1+MGOABZ3BX7UvQ1a+TEom5P
ACZg2AKrXb0CGiOIZNLCxK/MJdh/KaT/lC8gW/caN8IWrNunvVHK4wxKFpH/cm+Q
3f19E+YgE7owfEItldYmSpR9buusfTiEDrFJ6y8oVZ8tz+vsstcEE/tZwXOdk/Kd
lOFT7JUFWWRQrFR4XgwzIPKmjKcc0x7hZzhm2Kx4U6snHIls7D09wWR68TdmTQzj
2sMzMIb8yCSxdZjnxNnicifFZ6Dlkv4iedF+BrGDQ6B+ElWTgahTKQ8i8pAyMdRu
j+5BqjnLBItynZgvtDrvXv1Y4534QeHkxf0TbDFdN6wFBxrEzgK2S48O1gNovOdB
OTyzH/Q6oVNpTIoV5NTurdAECSZBSxB7T/pGpTh0Li2xL6CC8tawINjyEplQBTmy
qmxmTckBbk0k3XNhyEi2dcF/WfFkIffgJHGU8FAHwlH1sCW7T1cQKZFiTavsM48W
wVCvwDuq911y42IUlPOOhYiSTTnzVbon4LmMT8GLvD4ANTJbsR1ap/1t2V2guyFq
uNpB1EE7EkI2mZcr1n29zf9XwxzCf/Hz6kDnGo3HmsSLexVYnTv8j2eSUd7tIAa3
Hfzz2aG8nzRqd/DXEsqn
=gLFq
-----END PGP SIGNATURE-----

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


Re: Deploy a .WAR to multiple Tomcat instances

Posted by André Warnier <aw...@ice-sa.com>.
Michael Martin wrote:
> I have one .WAR to routinely deploy across various Tomcat Instances on different servers.
> 
> I believe FarmWarDeployer can only be used within a cluster. From what i understand, a cluster will require a HTTPD server with a mod_jk configured. Would anyone know of a way to achieve this without the need to configure a cluster? We have no desire to change traffic routing to go through an HTTPD as our load balancer handles traffic fine as it is. Ideally, i'd also like the context.xml to be distributable, so changing on one instance will update on all others...but i suspect this will require a cluster configured.
> 
> Any help/ideas appreciated!
> Mike
> 

I believe that this page should contain all that you want :

https://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Deploy_A_New_Application_Remotely

(and even if not, it is probably a good idea to read it first anyway, and come back here 
if you have any more questions)


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