Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 83691 invoked from network); 2 May 2009 18:30:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 May 2009 18:30:23 -0000 Received: (qmail 12290 invoked by uid 500); 2 May 2009 18:30:19 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 12218 invoked by uid 500); 2 May 2009 18:30:19 -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 12207 invoked by uid 99); 2 May 2009 18:30:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 May 2009 18:30:19 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 May 2009 18:30:11 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1M0JyA-00071r-Hj for users@tomcat.apache.org; Sat, 02 May 2009 11:29:50 -0700 Message-ID: <23349009.post@talk.nabble.com> Date: Sat, 2 May 2009 11:29:50 -0700 (PDT) From: ubk To: users@tomcat.apache.org Subject: JDBCRealm, Tomcat and MySQL MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: m.urbanowski@o2.pl X-Virus-Checked: Checked by ClamAV on apache.org Hi all I have a problem with authorization based on JDBCRealm. When I'm trying to get access to some html page which is store in protected directory all that I can see is just login-error.jsp page. I'm using login and password from my database. My server.xml: factory org.apache.commons.dbcp.BasicDataSourceFactory maxActive 10 maxIdle 5 validationQuery SELECT 1 testOnBorrow true testWhileIdle true timeBetweenEvictionRunsMillis 10000 minEvictableIdleTimeMillis 60000 username root password ubk driverClassName com.mysql.jdbc.Driver url jdbc:mysql://localhost:3306/wypozyczalnia My webapp web.xml: 5 index.jsp WstepWzbroniony pliki /pliki/* admin FORM /login.jsp /login-error.jsp admin I have no idea what's wrong. It's my first time with sth bigger in webapps. I'm rookie. I'm using Netbeans. -- View this message in context: http://www.nabble.com/JDBCRealm%2C-Tomcat-and-MySQL-tp23349009p23349009.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org