Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 54652 invoked from network); 8 Jul 2003 15:51:50 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 8 Jul 2003 15:51:50 -0000 Received: (qmail 18726 invoked by uid 97); 8 Jul 2003 15:54:18 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 18719 invoked from network); 8 Jul 2003 15:54:18 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 8 Jul 2003 15:54:18 -0000 Received: (qmail 51021 invoked by uid 500); 8 Jul 2003 15:51:08 -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 50904 invoked from network); 8 Jul 2003 15:51:07 -0000 Received: from va-spotsy-cuda1-c5a-253.frbgva.adelphia.net (HELO www.ait-web.com) (68.65.36.253) by daedalus.apache.org with SMTP; 8 Jul 2003 15:51:07 -0000 Received: from ait-web.com (abraxas.ait-web.com [192.168.1.22]) by www.ait-web.com (8.12.8/8.12.8) with ESMTP id h68GLOSW004298 for ; Tue, 8 Jul 2003 12:21:59 -0400 Message-ID: <3F0AE9C0.5060205@ait-web.com> Date: Tue, 08 Jul 2003 11:56:48 -0400 From: Rick Roberts User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: JDBCRealm first try Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This is my first try at setting up a JDBC Realm. I have read the how-to's and I also have the book "Mastering Tomcat Development" to help me figure it out but I still need help. I am trying to use Form Based Authentication and Oracle JDBCRealm. I get error: "No Realm has been configured to authenticate against" My error log: 2003-07-08 11:25:32 WebappLoader[/hd]: Deploying class repositories to work directory /var/tomcat4/work/Standalone/localhost/hd 2003-07-08 11:25:32 WebappLoader[/hd]: Deploy class files /WEB-INF/classes to /var/tomcat4/webapps/hd/WEB-INF/classes 2003-07-08 11:25:32 WebappLoader[/hd]: Reloading checks are enabled for this Context 2003-07-08 11:25:32 ContextConfig[/hd]: WARNING: Security role name tomcat used in an without being defined in a 2003-07-08 11:25:32 ContextConfig[/hd]: No Realm has been configured to authenticate against 2003-07-08 11:25:32 ContextConfig[/hd]: Marking this application unavailable due to previous error(s) 2003-07-08 11:25:32 StandardManager[/hd]: Seeding random number generator class java.security.SecureRandom 2003-07-08 11:25:32 StandardManager[/hd]: Seeding of random number generator has been completed 2003-07-08 11:25:32 StandardContext[/hd]: Context startup failed due to previous errors ----------------------------------- I am modifying the default server.xml that installs with Tomcat 4: I am not sure if I need the "UserDatabaseRealm". Here it is commented out! Realm className="org.apache.catalina.realm.JDBCRealm" connectionName="AI_DBA" connectionPassword="password" connectionURL="jdbc:oracle:thin:@sukoi:1521:orcl" driverName="oracle.jdbc.driver.OracleDriver" userTable="REALM_USER" userNameCol="LOGIN" userCredCol="PASSWORD" userRoleTable="REALM_ROLE" roleNameCol="ROLE" /> ----------------------------------------------------- My WEB-INF/web.xml file: Protected Area /* DELETE GET POST PUT tomcat FORM Form-Based Authentication Area /login.jsp /login_error.jsp Any help greatly appreciated. Thanks, -- ******************************************* * Rick Roberts * * Advanced Information Technologies, Inc. * ******************************************* --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org