• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

configuring MySQL JDBC Driver with Apache JServ

 
Sophia Oscario
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 **
 
Stanley Tan
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mm.mysql.jdbc-2.0pre5
is that the latest *STABLE* version? Try getting a stable version of the driver and see if that works
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic