Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 3476 invoked from network); 21 Sep 2009 03:27:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Sep 2009 03:27:14 -0000 Received: (qmail 94318 invoked by uid 500); 21 Sep 2009 03:27:10 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 94122 invoked by uid 500); 21 Sep 2009 03:27:10 -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 94111 invoked by uid 99); 21 Sep 2009 03:27:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Sep 2009 03:27:10 +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 rwonly@gmail.com designates 209.85.222.184 as permitted sender) Received: from [209.85.222.184] (HELO mail-pz0-f184.google.com) (209.85.222.184) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Sep 2009 03:27:00 +0000 Received: by pzk14 with SMTP id 14so1929429pzk.16 for ; Sun, 20 Sep 2009 20:26:39 -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=Gyqs2KcqJI/YEZcZRaOVky+G6FDsH/zppjH+BApvE3s=; b=kUREOsq0khwL6OUhhfIZgVFmr6MEjTSHR7TVpekwMJl1Xi7u/30S2ICUKcJ6WwQrgk Uy1kDlSP0q73GsMrusQhFuddU99Q1QgRJS3BOREZhLegyYUBZMbgFkGTKyLeYR9PwMPu 6dZyUJ31ZX7v8v5ADoZ9mFLqzGjZSbtA+CcaY= 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=jOmQhA2KD4IQao0kNPPgd3XbuhVPclZi2orPz8z8cN6u2TdgaGOZKQvoIg5M/Bv4Se FHQh+OKjs+ANZV+eWqVr7M5NjSCHNKv3j9/Z67vx1ZZcPyjPb5/dmV5/UqAjcygPk5WA UpduETUiIV1CznwsazBJegivJvvH+hOWJxTaA= MIME-Version: 1.0 Received: by 10.142.248.40 with SMTP id v40mr270336wfh.203.1253503599467; Sun, 20 Sep 2009 20:26:39 -0700 (PDT) In-Reply-To: <4AB35501.5030005@apache.org> References: <4AB1FA59.7080302@apache.org> <4AB35501.5030005@apache.org> Date: Mon, 21 Sep 2009 11:26:39 +0800 Message-ID: Subject: Re: what does j_security_check do in clustering? From: Rex Wang To: Tomcat Users List Content-Type: multipart/alternative; boundary=00504502ce4fc55f2f04740e0cc3 X-Virus-Checked: Checked by ClamAV on apache.org --00504502ce4fc55f2f04740e0cc3 Content-Type: text/plain; charset=ISO-8859-1 2009/9/18 Mark Thomas > Rex Wang wrote: > > 2009/9/17 Mark Thomas > > > >> Rex Wang wrote: > >>> Dear Tomcat, > >>> > >>> I meet a problem when config a web project which using the form based > >>> security in clustering. > >> Clustering or load-balancing? Whether or not session replication is > >> configured between your Tomcat instance's is key. > >> > > > > I guess the j_security_check is not implemented by session. so the > session > > replication does not work for security check, right? > > I thought it did - hence my question about whether you were using > clustering or just load balancing. > I am using clustering, and the security checking process can not complete if the session affinity = false. Looks like the login name and password are posted to another node, and some times I got a 400 error "HTTP Status 400 - Invalid direct reference to form login page". I just wanna know, how to do the form based security check if the session affinity = false in clustering. Many thanks -Rex > > > So the sticky session is the precondition of tomcat clustering? > > No. It is strongly recommended, but it isn't required providing you set > up your cluster appropriately. > > Mark > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --00504502ce4fc55f2f04740e0cc3--