ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Using Tomcat 4 Security Realms
Subject:   Oracle Driver URL cannot take username/password
Date:   2002-02-27 12:21:21
From:   c_novak@yahoo.com
I was getting an error putting username/password on the url line, but then noticed Tomcat 4.2 has connectionName and connectionPassword attributes in Realm:



<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="oracle.jdbc.driver.OracleDriver"
connectionName="scott"
connectionPassword="tiger"
connectionURL="jdbc:oracle:thin:@plate10.brc.gnf.org:1521:regdev"
userTable="AUTH_USER" userNameCol="USERNAME" userCredCol="PASSWORD"
userRoleTable="AUTH_USER_ROLE" roleNameCol="ROLE_NAME"/>