Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 70067 invoked from network); 26 Oct 2007 10:59:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2007 10:59:00 -0000 Received: (qmail 70532 invoked by uid 500); 26 Oct 2007 10:58:33 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 69916 invoked by uid 500); 26 Oct 2007 10:58:32 -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 69873 invoked by uid 99); 26 Oct 2007 10:58:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2007 03:58:32 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of p@pidster.com designates 87.106.82.221 as permitted sender) Received: from [87.106.82.221] (HELO s15243851.onlinehome-server.info) (87.106.82.221) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2007 10:58:36 +0000 Received: (qmail 1769 invoked from network); 26 Oct 2007 11:58:12 +0100 Received: from 87-194-39-44.bethere.co.uk (HELO phoenix.config) (87.194.39.44) by s15243851.onlinehome-server.info with SMTP; 26 Oct 2007 11:58:12 +0100 Message-ID: <4721C823.6000507@pidster.com> Date: Fri, 26 Oct 2007 11:57:39 +0100 From: Pid Reply-To: p@pidster.com Organization: Pid Inc User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: JDBC Realm with case insensitive user name References: <4720941A.2050508@gmail.com> <47209790.5030302@joedog.org> <47209976.7080608@gmail.com> <4720B2E8.7090301@pidster.com> <4721C193.1030606@gmail.com> In-Reply-To: <4721C193.1030606@gmail.com> X-Enigmail-Version: 0.95.4 OpenPGP: id=0927AE57 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Pedro wrote: > OK PID then you tell me where the jar goes hey? That's a lot of attitude for someone who wants help from the list. Or am I misreading your tone? I refer to my previous question: >> Perhaps you can elaborate on when you're getting this exception if we're >> to help you. (An actual error message would also be useful.) You say you are using Tomcat 6 for development, and Tomcat 5.5 in production. Is the error occurring in development or production? Which version of Tomcat are you compiling the classes against? The internal class structure of Tomcat 6 is not guaranteed to be identical to Tomcat 5.5, so it's entirely possibly you're using a class that doesn't exist in 5.5, if you're compiling against 6 and deploying against 5.5. (or vice versa). p { The most common reason that a ClassNotFoundException is encountered while mixing testing/deployment on different versions of Tomcat is that jars have been placed in the wrong location. List members usually offer up the obvious solutions first, because they're the most common solutions. Especially given that one message is usually insufficient to determine what the users level of knowledge is. Fsck knows why I'm bothering to explain that though. } >> p >> >> >> >> >> >>> Tim Funk wrote: >>> >>>> The dir structure changed from 5.5 to 6 so you need to place your >>>> files in different directories depending on the version. See the >>>> version specific docs details. >>>> >>>> >>>> -Tim >>>> >>>> Pedro wrote: >>>> >>>>> Hi all, >>>>> >>>>> I basically need to implement case insensitive user names, can this >>>>> be done with a servlet filter or do I need to subclass JDBC realm: >>>>> >>>>> public class CustomJdbcRealm extends JDBCRealm { >>>>> >>>>> public CustomJdbcRealm() { >>>>> super(); >>>>> } >>>>> public Principal authenticate(String username, String >>>>> credentials) { >>>>> return super.authenticate(username.toLowerCase(), credentials); >>>>> } >>>>> } >>>>> >>>>> And in server.xml: >>>>> >>>>> >>>>> I tried this approach but get class not found exceptions, I am using >>>>> tomcat6 in development and 5.5 in production. I package this class in >>>>> a jar and drop it in the $CATALENA_BASE/server/lib folder. >>>>> >>>>> >>>> --------------------------------------------------------------------- >>>> To start a new topic, e-mail: users@tomcat.apache.org >>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >>>> For additional commands, e-mail: users-help@tomcat.apache.org >>>> >>>> >>>> >>> --------------------------------------------------------------------- >>> To start a new topic, e-mail: users@tomcat.apache.org >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >>> For additional commands, e-mail: users-help@tomcat.apache.org >>> >>> >>> >> >> >> --------------------------------------------------------------------- >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> >> >> > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org