I have installed MySQL Server 4.1 and mysql-connector-java-3.0.17-ga. I have the JSP code just to establish a connection. When I try to execute it, it throws java.lang.ClassNotFoundException: com.mysql.jdbc.Driver. Which file am I missing and where should I place it? Thanks in advance.
Which file should I want to place?
2009-02-18 17:25:53
you want to place the mysql connector jar file in there
ShaneB
2009-02-18 17:40:07
mysql-connector-java-3.0.17-ga.jar
l_39217_l
2009-02-18 21:00:06
A:
The server has its own library of jars at run time. You need to put the msql jdbc jar file in the WEB-INF/lib folder, so that at runtime the tomcat install can find and load it. Anyway, check which class is throwing the exception, and make that class exist in the app-server's library folder.
Karl
2009-02-18 17:31:39