Here is the server.xml file I set up:
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc
racle:thin:@myserevr.xxx.com:1521
RCL"
connectionName="scott"
connectionPassword="tiger"
userTable="TOMCAT_USERS" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="TOMCAT_USER_ROLES" roleNameCol="role_name" />
The problem is that I can connect to that
string with userid/password thru my
servlets - so the connect info is right. But if I copy this in server.xml and try to set up JDBCRealm to Oracle 9i with setting classpath
(to be safe) in
Tomcat 5.0. It does not work. It says can not open database when I connect to my
test web page.
What could be wrong? I tested it and works on my PC when I have Oracle/tomcat on the same box.But now on tomcat box I do not have Oracle. I just copied oracle drivers at right location and start tomcat starts fine no error.
Has some one installed Tomcat on one machine and connected to Oracle on another UNIX machine and set up JDBCRealm as mentioned in Tomcat book.
Need help on this one.
Thanks