This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Servlets and the fly likes mysql driver problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "mysql driver problem" Watch "mysql driver problem" New topic
Author

mysql driver problem

Malhar Barai
Author
Ranch Hand

Joined: Aug 17, 2001
Posts: 399
hi all
unable to connect to mysql thru servlets. showing "java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver". I have my driver in E:\jakarta-tomcat-3.2.3\lib.
following is the Stack Trace

java.lang.NullPointerException at chkLogin.doPost(chkLogin.java:58) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484)

tia


Malhar Barai
SOA & Java Book
Brusk Baran
Ranch Hand

Joined: Nov 15, 2001
Posts: 132
check whether mysqld is running. i guess that is the problem.
Eric Peterson
Ranch Hand

Joined: Jan 08, 2002
Posts: 31
Tomcat uses your J2SDK to compile servlets. You should place the mm.mysql .jar file in your classpath settings.
[ January 27, 2003: Message edited by: Eric Peterson ]

Eric Peterson
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: mysql driver problem
 
Similar Threads
Uploading file not working
Need Help MYSQL /JDBC/Servlets
javax.servlet.ServletException: Cannot create bean of class...
struts problem
Uploading files