This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JDBC and the fly likes JAR/class file placement using Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Databases » JDBC
Bookmark "JAR/class file placement using Tomcat" Watch "JAR/class file placement using Tomcat" New topic

JAR/class file placement using Tomcat

William Fretts-Saxton

Joined: Mar 06, 2005
Posts: 11
Hey all,

I was playing around with getting jsp/mysql to play nice together and had a problem where "com.mysql.jdbc.Driver" could not be found. Now, I finally fixed it by putting it into the jre/lib/ext directory of my JAVA_HOME directory.

The reason this took many hours was because I put it into my WEB-INF/lib directory (using tomcat) and I thought this was sufficient. Can someone tell me what the purpose of WEB_INF/classes and WEB-INF/lib directories are for, if you have to put the classes or jars into your classpath anyway??

I'm really a java newb, but I have played with this for a few days and have figured out a lot of my own. This, however, really bugs me. I have a copy of the mysql<etc>jar file in 10 different directories in my system trying to get this thing to work. I would appreciate a succinct explanation

David O'Meara

Joined: Mar 06, 2001
Posts: 13459

I answered a very sinilar question here.

William Fretts-Saxton

Joined: Mar 06, 2005
Posts: 11
Thanks! I'll keep screwin' around with it
GeeCON Prague 2014
subject: JAR/class file placement using Tomcat