After much gnashing of teeth I figured out that I wanted to add database connection "resource" information inside a <context> element in a META-INF/context.xml file under the web application directory. Yes there are other ways to do it, but this seems like a good mainstream style.

It's too bad the MySQL Connector/J and Tomcat web page ( http://dev.mysql.com/doc/refman/5.0/en/cj-tomcat-config.html ) wasn't more newbie friendly.

You can see my detailed tutorial/writeup at:

http://www.benslade.com/projects/java/tomcat/InstallingJavaTomcatMySQLOnMacOSX/

All feedback/corrections on the above web page are appreciated.

Ben Slade


Benjamin Slade wrote:
Can someone point me to some resources for setting up Tomcat so that servlets/JSP's can connect to a local MySQL database?

The instructions for configuring Connector/J (at dev.mysql.com/doc/refman/5.0/en/cj-tomcat-config.html ) don't seem to match the setup of my tomcat/conf/server.xml file. ...snip...


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to