PDA

Click to See Complete Forum and Search --> : JDBC extensions *resolved*


CornedBee
Jun 2nd, 2003, 01:45 AM
Hey there!
I'm trying to access a mysql database via JDBC from a JSP page. To do this I downloaded the mysql JDBC connector. I now have a jar file that I must copy somewhere, but I don't know where. I think by now I have about 8 copies of the file in various directories of my SDK, JRE and Tomcat. But the loading (as shown in the connector readme) still doesn't work.

Can anyone help me?


Driver d = (Driver)Class.forName("com.mysql.jdbc.Driver").newInstance();

// ClassNotFoundException

DeadEyes
Jun 3rd, 2003, 02:10 PM
http://www.javacoding.net/articles/technical/java-mysql.html
maybe this will help

CornedBee
Jun 4th, 2003, 07:17 AM
Problem resolved, I had to restart the webserver to make it recognize the classes :rolleyes:.

Now it gives me permission problems, but I'll see if I can resolve that for myself for now.

CornedBee
Jun 4th, 2003, 07:19 AM
BTW, the article is a little bit outdated, it still uses the old package name of the mysql driver.

Useful anyway, thanks.