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.
I have JNDI working with my Oracle 9i database using my server.xml file in my local Tomcat 4.1.27. Now I need to put my webapp on the server and I wont get access or be able to touch server.xml on the server.
Please advise how I can get the JNDI to work without using server.xml. I tried putting the <context> info I had in server.xml into mywebappname root and call it mywebappname.xml and that didnt work. I also tried that with creating a context.xml and that didnt work. Both gave me back error message: Cannot create JDBC driver of class '' for connect URL 'null'
Is this something that can be done in Tomcat 4.1.27??
Here is what I have working in my server.xml that connects to Oracle databse with no problems: server.xml(C:\jakarta-tomcat-4.1.27\conf)
database connection part
[ November 08, 2007: Message edited by: Mike Jenkins ]
You can create a META-INF folder right beside WEB-INF, inside which you create context.xml then add your configuration there. when you deploy it to tomcat, the file will be found at CATALINA_HOME/config/[engine]/[host]/, I used this technique, it works for me.
Do you know why this cup is useful? Because it is empty.