aspose file tools*
The moose likes Servlets and the fly likes MySQL JDBC Driver with Apache JServ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "MySQL JDBC Driver with Apache JServ" Watch "MySQL JDBC Driver with Apache JServ" New topic
Author

MySQL JDBC Driver with Apache JServ

CyberOsc
Greenhorn

Joined: May 13, 2001
Posts: 2
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 is belong to the world **


** Science is belong to the world **
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
"CyberOsc",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Sophia Oscario
Greenhorn

Joined: May 14, 2001
Posts: 22
hehehe sorry Mr Sheriff ....
I post that message with username CyberOsc accidentally.
I always use that username on others forum, so you know ...
hehehe
sorry again ...
------------------
** Science belongs to the world **


** Science belongs to the world **
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MySQL JDBC Driver with Apache JServ