This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
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.
Joined: Apr 24, 2003
Since i struggled hard on this w/o much help. Here is the problem I had:
1. Oracle drivers were not in lib directory of container. 2. My password had a reserved word "$". That was blowing up JDBCRealm even though another version of application that was unprotected worked fine. As soon as I changed that in server.xml to a vlaue not using this it worked fine.
Overall, I think Tomcat being a freeware is becoming unmanagble for our project as there is not much help and really one needs to spend hours to dig issues like this .... I hate this unproductive Java programming and love old Powerbuilder when we can turn these applications in no time with point and click.