jQuery in Action, 3rd edition
The moose likes JDBC and Relational Databases and the fly likes configuring MySQL JDBC Driver with Apache JServ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "configuring MySQL JDBC Driver with Apache JServ" Watch "configuring MySQL JDBC Driver with Apache JServ" New topic

configuring MySQL JDBC Driver with Apache JServ

Sophia Oscario

Joined: May 14, 2001
Posts: 22
I'm using Apache JServ 1.1.2 on my Win NT machine.
For the MySQL JDBC driver I use mm.mysql.jdbc-2.0pre5.
My question is how to configure the driver with the Apache Jserv ?
I try to use the driver on my servlet and it returns an error like this :
java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver at org.apache.java.lang.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:480) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at JDBC.test.query(test.java:37) at JDBC.test.doGet(test.java:20) at javax.servlet.http.HttpServlet.service(HttpServlet.java:499) at javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at org.apache.jserv.JServConnection.processRequest(JServConnection.java:317) at org.apache.jserv.JServConnection.run(JServConnection.java:188) at java.lang.Thread.run(Thread.java:484)
I've set the CLASSPATH into the directory of the mm.mysql.jdbc. (according to the documentation), but it doesn't work.
Thanks in advance.

** Science belongs to the world **

** Science belongs to the world **
Stanley Tan
Ranch Hand

Joined: May 17, 2001
Posts: 243
is that the latest *STABLE* version? Try getting a stable version of the driver and see if that works
I agree. Here's the link: http://aspose.com/file-tools
subject: configuring MySQL JDBC Driver with Apache JServ
It's not a secret anymore!