Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 59380 invoked from network); 28 Nov 2003 21:44:45 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 28 Nov 2003 21:44:45 -0000 Received: (qmail 26948 invoked by uid 500); 28 Nov 2003 21:44:15 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 26713 invoked by uid 500); 28 Nov 2003 21:44:14 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 26697 invoked from network); 28 Nov 2003 21:44:13 -0000 Received: from unknown (HELO aptitudexchange.com) (208.44.243.10) by daedalus.apache.org with SMTP; 28 Nov 2003 21:44:13 -0000 From: "Patrick Willart" To: "Tomcat Users List" Subject: RE: Form based authentication Date: Fri, 28 Nov 2003 13:40:45 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal In-Reply-To: <3FC7713C.9060701@greenfieldresearch.ca> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello Atreya, Your stylesheet is returned after authentication because it is access restricted. If you make your stylesheet freely accessible it will work. grts, Patrick -----Original Message----- From: Atreya Basu [mailto:atreya@greenfieldresearch.ca] Sent: Friday, November 28, 2003 8:01 AM To: Tomcat Users List Subject: Form based authentication Hi all, I thought I would share some of my experiences with JDBCRealm authentication. First what I wanted to do was see if JDBCRealm based authentication even worked. All I got was Tomcat quitting. My first problem was that my web.xml file wasn't in the right order. I went to BEA's website and used their web.xml file explanation page to get all of the spelling and order of the elements right. But Tomcat still wasn't running. It turned out my second problem was that for some reason the MySQL JDBC driver wasn't being found, even though I had placed it in the common\lib directory. So I edited the catalina file manually and added in the jar file. Next whenever I would authenticate I would get a stylesheet instead of my intended destination. Then one time I authenticated and accidentally hit the login page. It showed me a different styled login page. That happened because my stylesheet was kept inside the context directory it wasn't being retrieved till I authenticated. So instead of pulling up index.html after I authenticate it pulled up the stylesheet because my browser was waiting to load that file. Solution of course was to place the stylesheet in an unsecure directory. I hope that someone finds this useful. Cheers, -- _____________________________________ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org