File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes mysql-jdbc driver Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "mysql-jdbc driver" Watch "mysql-jdbc driver" New topic
Author

mysql-jdbc driver

Chandra MR
Greenhorn

Joined: Oct 10, 2003
Posts: 1
Hi all,
i am using mysql-connecor-3.0.8-stable driver for jdbc in my web application using jsp on linux. But, now, i'm getting jdbc:ClassNotFoundException com.mysql.jdbc.Driver. but the Driver class is in the same path. can anyone help me?
thanks
Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

If you are accessing the Driver directly from you JSP page or a Servlet, the driver needs to be in the /WEB-INF/lib/ folder. If you are trying to use connection pooling, you will need to put the driver where the Application Server specifies it to go. For example, Tomcat will require it in the $TOMCAT_HOME/commons/lib/ folder.
So which is it?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: mysql-jdbc driver
 
Similar Threads
groovy SQL
why i can't get the whole string when rs.getString() called ?
jdbc with mysql
Error:Cannot create JDBC driver of class '' for connect URL 'null'
How to rollback multiple prepared statements