Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D3CCD72A5 for ; Wed, 21 Dec 2011 22:02:22 +0000 (UTC) Received: (qmail 16246 invoked by uid 500); 21 Dec 2011 22:02:18 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 16067 invoked by uid 500); 21 Dec 2011 22:02:18 -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 16058 invoked by uid 99); 21 Dec 2011 22:02:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2011 22:02:18 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of demablogia@gmail.com designates 209.85.210.173 as permitted sender) Received: from [209.85.210.173] (HELO mail-iy0-f173.google.com) (209.85.210.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2011 22:02:11 +0000 Received: by iagj37 with SMTP id j37so16065166iag.18 for ; Wed, 21 Dec 2011 14:01:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=t+e8TFF7owIMxwzKtzJZ0CIPcGgUVaklnZZmEExEakQ=; b=M2VjY2izNyNYk9EZuRAZZ1dWTIX2MjU6ldCR+PR3wy7T87d0OhFNN3d376uW3F5sBc wtTd9QFHx5g+vBspIqpBisj4ZmFMTzRtkZOl7TmISAZevWvEz42tw8zl5BeYD/NlYv3I oXFIUHC4zzcbwOnG6Sq5DyR+hxIPp4K9wLMGE= Received: by 10.42.153.6 with SMTP id k6mr8843595icw.30.1324504911341; Wed, 21 Dec 2011 14:01:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.10.129 with HTTP; Wed, 21 Dec 2011 14:01:30 -0800 (PST) In-Reply-To: References: From: Chema Date: Wed, 21 Dec 2011 23:01:30 +0100 Message-ID: Subject: Re: Login fails, then works subsequently (Tomcat 7) To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable You can try to set traces into the code of your realm class, if it's a custom realm : to watch the query executed , to watch the user/password passed from browser, to catch exceptions and print stack trace ... If you dont have a custom realm, you can try to create one for testing Can you paste your server.xml conf ? Only realm parts (all), without sensible data Good luck 2011/12/21 Jerry Malcolm <2ndgenfilms@gmail.com>: > About a month ago, I upgraded two different servers from TC 5 to TC 7. = =A0The > migration went cleanly, and everything has been working fine with the > exception of one thing. =A0 About 50% of the time, when I log in to the r= ealm > for my web app (form-based login), the login will fail. =A0When I try aga= in > with the same id/pw it works. =A0I can then log out and log back in > repeatedly with no problem. =A0But if I come back later and try to log on > again, same things. =A0Fails once, and then passes. > > My authentication configuration hasn't changed for years on these webapps= , > and this has worked solid on TC 5. =A0My database (MySQL) hasn't changed,= and > the user tables are unchanged. =A0The only thing that has changed is TC 5= - > -->TC 7. =A0And the problem has hit both servers, completely independent = of > each other, other than they both got the TC 7 upgrade. > > First of all, has anyone ever heard of this situation? =A0Second, any ide= a > how where/how to turn on detailed tracing/logging of the authentication > calls to see what might be going on in the authentication code in TC? =A0= The > only information I'm getting is that the id/pw were not correct. =A0But > again, same id/pw becomes correct when I submit it a 2nd time. > > The one thing I didn't change was the MySQL connector. =A0Should that hav= e > been changed for TC 7? (Just guessing now) > > Suggestions for how to proceed? > > Thx. > > Jerry --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org