Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 48790 invoked from network); 13 Aug 2009 09:56:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Aug 2009 09:56:22 -0000 Received: (qmail 33801 invoked by uid 500); 13 Aug 2009 09:56:25 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 33768 invoked by uid 500); 13 Aug 2009 09:56:25 -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 33757 invoked by uid 99); 13 Aug 2009 09:56:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Aug 2009 09:56:25 +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 (nike.apache.org: domain of lossil@gmail.com designates 209.85.216.197 as permitted sender) Received: from [209.85.216.197] (HELO mail-px0-f197.google.com) (209.85.216.197) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Aug 2009 09:56:15 +0000 Received: by pxi35 with SMTP id 35so93663pxi.12 for ; Thu, 13 Aug 2009 02:55:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=Q8GB/KiqNDxX7n2JlV+wage5o9ucJm3YxPdhe8KFeY8=; b=kaG72g9qzCmzf+9Y+sWnc/xEVHoz9S8qqm9ravAJ60KzlBvQv+yHIfDpOceHX00S35 m6Kv378iUgVUysy6aldzYYnXfMmsNWhmfVkMTTMeaTPOpvZ9Kdj0GXnO35OUCWQunI7C hu4KNsAJQ7uorWYC4r60V+XtWis7HVgjPH4lE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ARzfeR1naon6PFzWJBElEh6CO5LKzGjahpWNWLVTBWnX7JOJtcipPY4GGjN7O4BmdM /IqgBccbUnR84OnQfHE9pdLtZBw/drOT7hSFu2gSSoXDhgfjWIyZLKpBXrQdD4L6qsdz 2uCMaGoSldvcXLNQn7QV2NIS7CMAajf7WJ8Go= MIME-Version: 1.0 Received: by 10.142.48.14 with SMTP id v14mr147447wfv.290.1250157354282; Thu, 13 Aug 2009 02:55:54 -0700 (PDT) In-Reply-To: <0AAE5AB84B013E45A7B61CB66943C17229B649345C@USEA-EXCH7.na.uis.unisys.com> References: <6cb915f70908120610u3d2f4cb2hc72ab9c9115a58c6@mail.gmail.com> <0AAE5AB84B013E45A7B61CB66943C17229B649345C@USEA-EXCH7.na.uis.unisys.com> Date: Thu, 13 Aug 2009 12:55:54 +0300 Message-ID: <6cb915f70908130255r5172b6a7i5fb50580e7adbaf2@mail.gmail.com> Subject: Re: Tomcat 6 clustering and engine's defaulthost From: Ossi To: Tomcat Users List Content-Type: multipart/alternative; boundary=000e0cd3116a03eeeb047102f10e X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd3116a03eeeb047102f10e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Wed, Aug 12, 2009 at 5:26 PM, Caldarale, Charles R < Chuck.Caldarale@unisys.com> wrote: > > From: Ossi [mailto:lossil@gmail.com] > > Subject: Tomcat 6 clustering and engine's defaulthost > > > > Looks like if configuring a Tomcat 6 cluster Engine's and host's > > default host must be "localhost", ie. > > > > If having something else than localhost, an error is logged: > > 2009-04-03 12:48:15,492 WARN [pool-2-thread-1] > > (org.apache.catalina.ha.ClusterListener) Context manager doesn't > > exist:private-tomcat1# > > It would be more informative if you posted the configuration that produces > the error rather than one that doesn't. > > > Since we are planning to run different Tomcat servers on the same box, > > each with their own ip, so it would seem to be more convenient if Engine > > could use the same address. > > The name of the has nothing to do with the IP address it's listening > on. Again, post the server.xml you're having trouble with. Yep, I noticed that. Problem occurred when we had in server 1: and in server 2: I tested and noticed If both servers have same defaultHost like "localhost" or "foobar" it seems to work without logged warning or errors (as long as the same name is used in the Host element, ie: So, maybe my question is that is there any harm if I use random, non-existing names as defaultHost for Engine? For what it is used for? Other than "mapping engine to some host element" and apparently it used somehow to identify cluster members? And thanks for you're reply. Regards, Ossi --000e0cd3116a03eeeb047102f10e--