tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Draucker <rich...@draucker.com>
Subject Re: javax.servlet.ServletException: No suitable driver
Date Tue, 14 Aug 2001 12:16:40 GMT
Your classpath indictes you're using the mm.mysql src distribution.  I don't 
know that this includes the compiled classes (then again, I don't know that 
it doesn't).  
None the less, put mm.mysql-2.0.4-bin.jar in either $TOMCAT_HOME/lib or your 
application's WEB-INF/lib (you might have to create this dir) and forget 
about the classpath.

- Richard



On Tuesday 14 August 2001 07:57 am, you wrote:
> Hello,
>
> I have setup Tomcat-3.2.3 and Apache_1.3.20 with MySQL-3.23.36 under
> RedHatLinux 7.1.
> jdk1.2.2 is installed under /usr/local/src/jdk.
> Tomcat, Apache and MySQL are basically working fine
> I am trying to use MM.MySQL for JDBC connectivity to MySQL.
> my CLASSPATH is /usr/local/src/jdk1.2.2/lib/mm.mysql-2.0.4-src.jar
> This is the log that I have:
>
> javax.servlet.ServletException: No suitable driver
> 	at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextIm
>p l.java:459)
> 	at
> jsp._0002fjsp_0002ftest_0002ejsptest_jsp_7._jspService(_0002fjsp_0002ftest_
>0 002ejsptest_jsp_7.java:96)
> 	at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at
> org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.j
>a va:130)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.j
>a va:282)
> 	at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
> 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> 	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:8
>1 2)
> 	at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
> 	at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnectio
>n (Ajp12ConnectionHandler.java:166)
> 	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:479)
> Root cause:
> java.sql.SQLException: No suitable driver
> 	at java.sql.DriverManager.getConnection(DriverManager.java:477)
> 	at java.sql.DriverManager.getConnection(DriverManager.java:137)
> 	at
> jsp._0002fjsp_0002ftest_0002ejsptest_jsp_7._jspService(_0002fjsp_0002ftest_
>0 002ejsptest_jsp_7.java:67)
> 	at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at
> org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.j
>a va:130)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.j
>a va:282)
> 	at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
> 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> 	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:8
>1 2)
> 	at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
> 	at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnectio
>n (Ajp12ConnectionHandler.java:166)
> 	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:479)
>
> What did I miss?
>
> Aykal

-- 
Richard Draucker richard@protected-data.com
Protected-Data.Com www.protected-data.com
Remote Data Support For Web Developers


Mime
View raw message