Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 92576 invoked from network); 1 Feb 2010 11:54:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2010 11:54:09 -0000 Received: (qmail 75666 invoked by uid 500); 1 Feb 2010 11:54:05 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 75576 invoked by uid 500); 1 Feb 2010 11:54:05 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 75565 invoked by uid 99); 1 Feb 2010 11:54:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2010 11:54:05 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fernando@consultorpc.com designates 93.159.209.25 as permitted sender) Received: from [93.159.209.25] (HELO zimbra.ip-zone.com) (93.159.209.25) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2010 11:53:55 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.ip-zone.com (Postfix) with ESMTP id 467B54DF81EA for ; Mon, 1 Feb 2010 12:53:32 +0100 (CET) X-Virus-Scanned: amavisd-new at zimbra.ip-zone.com Received: from zimbra.ip-zone.com ([127.0.0.1]) by localhost (zimbra.ip-zone.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sOPur6qshEE3 for ; Mon, 1 Feb 2010 12:53:27 +0100 (CET) Received: from [192.168.0.200] (201.47.52.100.dynamic.adsl.gvt.net.br [201.47.52.100]) by zimbra.ip-zone.com (Postfix) with ESMTPSA id 269BE4DF81A8 for ; Mon, 1 Feb 2010 12:53:25 +0100 (CET) From: Fernando Morgenstern Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: multipart/alternative; boundary=Apple-Mail-1--1044807846 Subject: Re: Application deployment on clusters Date: Mon, 1 Feb 2010 09:53:20 -0200 In-Reply-To: <4B66B526.7030009@apache.org> To: "Tomcat Users List" References: <146A1F98-B5FB-4326-B2EB-C633CAC82F49@consultorpc.com> <4B66B526.7030009@apache.org> Message-Id: <2300DA4F-A4DF-4462-A4F3-7920AA849FEA@consultorpc.com> X-Mailer: Apple Mail (2.1077) --Apple-Mail-1--1044807846 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Em 01/02/2010, =E0s 09:04, Mark Thomas escreveu: > On 01/02/2010 10:52, Fernando Morgenstern wrote: >> Hello, >>=20 >> I am trying to find out how can i deploy an application on all nodes = at a Tomcat 6 cluster. >>=20 >> Basically i have this on my server.xml: >>=20 >> > tempDir=3D"/tmp/war-temp/" >> deployDir=3D"/tmp/war-deploy/" >> watchDir=3D"/tmp/war-listen/" >> watchEnabled=3D"false"/> >>=20 >> Does it means, that i have to move my war file to /tmp/war-deploy and = it will be deployed on all nodes? >=20 > I was about to say check the docs and a found this: > http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-deployer.html >=20 > Anyone fancy writing a documentation patch? The Javadoc also needs = updating. >=20 > =46rom a quick scan of the code: > watchDir - the directory where we watch for changes - put your WAR to > deploy here > deployDir - the directory where we install applications > tempDir - a temporaryDirectory to store binary data when downloading a > war from the cluster Thanks for your quick answer. I changed watchEnabled to true and downloaded this sample war ( = https://sec1.woopra.com/docs/appdev/sample/ ) into /tmp/war-listen/ but = it is not listed at list applications on tomcat manager. I found the = following entries on catalina.out: INFO: check cluster wars at /tmp/war-listen Feb 1, 2010 12:37:18 PM org.apache.catalina.ha.deploy.FarmWarDeployer = fileModified INFO: Installing webapp[/sample] from /tmp/war-deploy/sample.war Feb 1, 2010 12:37:18 PM org.apache.catalina.ha.deploy.FarmWarDeployer = remove INFO: Cluster wide remove of web app /sample Feb 1, 2010 12:37:38 PM org.apache.catalina.ha.deploy.WarWatcher check INFO: check cluster wars at /tmp/war-listen Feb 1, 2010 12:37:58 PM org.apache.catalina.ha.deploy.WarWatcher check INFO: check cluster wars at /tmp/war-listen Any ideas of what i am doing wrong? Also, does this /tmp/war* paths needs to be shared between all nodes on = the cluster ( Eg.: using glusterfs or another distributed filesystem ) = or does tomcat takes care of this?=20 Best Regards, --- Fernando Marcelo www.consultorpc.com fernando@consultorpc.com --Apple-Mail-1--1044807846--