I am having trouble getting a database connection using Tomcat 5.5.9 on WIndows XP. Here is what I have:
* I have put mysql-connector-java-3.1.10-bin.jar in TOMCAT_HOME/common/lib/directory * I create a context.xml file that I put in the meta-inf directory of my war file. Here is the contents:
When I run this servlet, I get the following message print out from the catch clause above:
Cannot create JDBC driver of class '' for connect URL 'null'
It can't seem to find the class. Should I put the context.xml somewhere else or has anyone had success putting it in the meta-inf directory? Any help would be apprectiated! Thanks Brian [ July 07, 2005: Message edited by: Brian Nice ]
I didnt read the documentation throughly, but from what I remember, the context information is picked from META-INF directory only when you use one of the Tomcat tools (Deployer?Manager?) to deploy the application.
This may not be done under other conditions, for example if you are deploying an expanded directory or manually copying a war to webapps.