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 5D7619F2C for ; Wed, 8 Feb 2012 20:25:08 +0000 (UTC) Received: (qmail 65536 invoked by uid 500); 8 Feb 2012 20:25:04 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 65453 invoked by uid 500); 8 Feb 2012 20:25:04 -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 65443 invoked by uid 99); 8 Feb 2012 20:25:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2012 20:25:03 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shmoldie@gmail.com designates 74.125.82.173 as permitted sender) Received: from [74.125.82.173] (HELO mail-we0-f173.google.com) (74.125.82.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2012 20:24:59 +0000 Received: by werh12 with SMTP id h12so903407wer.18 for ; Wed, 08 Feb 2012 12:24:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=HIFvVINb5DgxQvfgxHYW/ZmBu/OAGuAu7fvzEZtzLg0=; b=KYFJM0aAmzlvHaQVmTe0U3pswaoMMb4vV83z/FvjweVRChg+yp5b+KuhJxRPvMYRsw HjQLFu32mVpya7dO590Nn7MLqel6fpelJs3KU69zuOpqourz9ilzofD5YyONYQF/EE7q 2z1I5gXzfPxqGTvrla6VAvQlWeE76l4lafQWk= MIME-Version: 1.0 Received: by 10.216.134.3 with SMTP id r3mr9270727wei.40.1328732677797; Wed, 08 Feb 2012 12:24:37 -0800 (PST) Sender: shmoldie@gmail.com Received: by 10.180.95.37 with HTTP; Wed, 8 Feb 2012 12:24:37 -0800 (PST) In-Reply-To: <4F32D40B.7010608@apache.org> References: <4F32C1F6.10402@apache.org> <4F32CFAC.1000905@apache.org> <4F32D40B.7010608@apache.org> Date: Wed, 8 Feb 2012 15:24:37 -0500 X-Google-Sender-Auth: B47zcdxME9QwAbZB94KcTqiSAXE Message-ID: Subject: Re: Why am I Getting org.apache.catalina.realm.JDBCRealm getPassword SEVERE: Exception performing authentication? From: Jonathan Rosenberg To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable See below On Wed, Feb 8, 2012 at 2:59 PM, Mark Thomas wrote: > On 08/02/2012 19:52, Jonathan Rosenberg wrote: >> Mark, >> >> Thanks for the reply. >> >>>> I don't understand why Tomcat is involved in the authentication =A0(th= e >>>> exception happens in org.apache.catalina.realm.JDBCRealm getPassword) >>>> at this point. =A0As far as I know, the only authentication going on >>>> should be the CAS authentication used by my app. >> >>> This means you are using Tomcat's BASIC authentication. >>> It appears you do not have CAS configured correctly. Check your web.xml= . >> >> I'm (obviously) a novice here. =A0Which web.xml should I be checking? >> >> - The app's web.xml? (There is mention of anything security-related ther= e). >> >> - The 'root' web.xml? > > Ah. The joy's of debugging Servlet 3.0 applications. Web fragments were > such a good idea. Not. > > In CATALINA_BASE/conf/context.xml, add the following to the .../> element: > > logEffectiveWebXml=3D"true" > > That will cause Tomcat to log the result of merging the default web.xml, > host level web.xml, app level web.xml, web fragments and annotations as > an 'effective' web.xml file. Then look at your app for the CAS config > and and sections. I modified the Context element in context.xml as follows >From reading the docs, I expected to see something in catalina.out. Nothing new there. Do I need to set the log level somewhere? -- Jonathan Rosenberg Founder & Executive Director Tabby's Place, a Cat Sanctuary http://www.tabbysplace.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org