This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "configuring MySQL JDBC Driver with Apache JServ" Watch "configuring MySQL JDBC Driver with Apache JServ" New topic
Author

configuring MySQL JDBC Driver with Apache JServ

Sophia Oscario
Greenhorn

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
mm.mysql.jdbc-2.0pre5
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