Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 24598 invoked from network); 15 Nov 2010 13:18:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Nov 2010 13:18:14 -0000 Received: (qmail 86024 invoked by uid 500); 15 Nov 2010 13:18:41 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 85699 invoked by uid 500); 15 Nov 2010 13:18:40 -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 85690 invoked by uid 99); 15 Nov 2010 13:18:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Nov 2010 13:18:40 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Nov 2010 13:18:32 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1PHywl-000391-Kt for users@tomcat.apache.org; Mon, 15 Nov 2010 05:18:11 -0800 Message-ID: <30218786.post@talk.nabble.com> Date: Mon, 15 Nov 2010 05:18:11 -0800 (PST) From: rikslovein To: users@tomcat.apache.org Subject: Re: Using mod_jk in cluster environment responds HTTP 500 In-Reply-To: <4CE0E00D.8030706@ice-sa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: riks.lovein@gmail.com References: <30198809.post@talk.nabble.com> <4CDD63DA.8010506@christopherschultz.net> <30215524.post@talk.nabble.com> <4CE0E00D.8030706@ice-sa.com> X-Virus-Checked: Checked by ClamAV on apache.org awarnier, Thanks for your response. I changed this and still it didn't solve my problem. The request are still reaching to the server which I made down using jkmanager. Here's the updated workers.proeprties: worker.list=loadbal_hub_prod,jkstatus worker.loadbal_hub_prod.type=lb worker.loadbal_hub_prod.balance_workers=hub0,hub1 worker.loadbal_hub_prod.sticky_session=false worker.jkstatus.type=status worker.list=hub0 worker.hub0.port=8009 worker.hub0.host=localhost worker.hub0.type=ajp13 worker.hub0.lbfactor=1 #worker.hub0.redirect=hub1 worker.list=hub1 worker.hub1.port=9009 worker.hub1.host=localhost worker.hub1.type=ajp13 worker.hub1.lbfactor=1 #worker.hub1.redirect=hub0 Regards... awarnier wrote: > > rikslovein wrote: >> Thanks for the quick response Chris. >> >> Please find the details given below: >> >> Let me know if you need more information. >> >> Thanks & regards... >> >> Server.xml >> > enableLookups="false" redirectPort="8443" protocol="AJP/1.3" /> >> >> workers.properties: >> workers.tomcat_home=/opt/webhost/DWH-Tomcat-Inst/tomcat5.5.23 >> workers.java_home=/usr/lib/jvm/java-1.5.0 > > The above 2 properties are obsolete (since a long time). Remove them. > >> ps=/ > > I think this one too (not sure). > >> >> worker.list=loadbal_hub_prod,jkstatus,hub0,hub1 >> > > This is wrong. If the workers are already balanced (by the > loadbal_hub_prod balancer), > then they should not be separately listed in worker.list. > Correct : > worker.list=loadbal_hub_prod,jkstatus > >> worker.hub0.port=8009 >> worker.hub0.host=localhost >> worker.hub0.type=ajp13 >> worker.hub0.lbfactor=1 >> worker.hub0.redirect=hub1 >> >> worker.hub1.port=9009 >> worker.hub1.host=localhost >> worker.hub1.type=ajp13 >> worker.hub1.lbfactor=1 >> worker.hub1.redirect=hub0 >> >> worker.jkstatus.type=status >> >> worker.loadbal_hub_prod.type=lb >> worker.loadbal_hub_prod.balanced_workers=hub0,hub1 > > The property is "balance_workers", not "balanced_workers". > worker.loadbal_hub_prod.balance_workers=hub0,hub1 > > (http://tomcat.apache.org/connectors-doc/generic_howto/loadbalancers.html) > >> worker.loadbal_hub_prod.sticky_session=false >> >> >> >> Christopher Schultz-2 wrote: >>> -----BEGIN PGP SIGNED MESSAGE----- >>> Hash: SHA1 >>> >>> Rikslovein, >>> >>> On 11/12/2010 7:19 AM, rikslovein wrote: >>>> I've one apache and two tomcat installed in my server. The >>>> communication >>>> happens using AJP 1.3. I'm using the jkmanager URL to >>>> activate/deactivate >>>> the tomcat instances. Also, I'm making sure atleast one of the two >>>> tomcat >>>> instance is up when other one is down. >>>> >>>> The problem is sometimes the client request does go to deactivated >>>> tomcat >>>> instance resulting in HTTP 500 error. I want the request to be >>>> redirected >>>> only to the active tomcat instance and not the deactivated one. >>>> >>>> Please suggest how can I do this. >>> Can you post your workers.properties file (minus any secrets) and also >>> your configuration from Tomcat's server.xml file? >>> >>> - -chris >>> -----BEGIN PGP SIGNATURE----- >>> Version: GnuPG v1.4.10 (MingW32) >>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ >>> >>> iEYEARECAAYFAkzdY9oACgkQ9CaO5/Lv0PAt9ACeMGF7xMjQl3oM+qz66LP0cENS >>> mEQAmwZ2pRzawrlcBaOlqOD3tXyES9ap >>> =zsLx >>> -----END PGP SIGNATURE----- >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >>> For additional commands, e-mail: users-help@tomcat.apache.org >>> >>> >>> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > > -- View this message in context: http://old.nabble.com/Using-mod_jk-in-cluster-environment-responds-HTTP-500-tp30198809p30218786.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org