tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Herchel Wojciech <W.Herc...@pzuzycie.com.pl>
Subject ODP: MySQL question - No suitable driver
Date Wed, 28 Feb 2001 07:38:22 GMT
most likely the mm driver is not in your classpath

vVolf


> -----Oryginalna wiadomooeæ-----
> Od: Wong, Connie [mailto:connie.wong@lmco.com]
> Wys³ano: 27 lutego 2001 20:56
> Do: tomcat-user@jakarta.apache.org
> Temat: MySQL question - No suitable driver
> 
> 
> Hi,
> 
> I try to connect a servlet talk to the MySQL database.
>      I set:
>              
>      drivername = "org.gjt.mm.mysql.Driver" and
>                  url = "jdbc:mysql:tbl_data"
> 
> I downloaded MyODBC and fill in the ODBC setup and add the
> "mm_mysql-2_0_2-bin.jar" in the classpath.
> 
> When I run my servlet on the browser, it display the 
> following Exception:
> 
> 
> java.sql.SQLException: No suitable driver at
> java.sql.DriverManager.getConnection(DriverManager.java:537) at
> java.sql.DriverManager.getConnection(DriverManager.java:146) at
> Benchmark_sql.query(Benchmark_sql.java:94) at
> Benchmark_sql.doGet(Benchmark_sql.java:47) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra
> pper.java:503)
> at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra
> pper.java:597)
> at
> org.apache.tomcat.servlets.InvokerServlet.service(InvokerServl
> et.java:257)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra
> pper.java:503)
> at 
> org.apache.tomcat.core.ContextManager.service(ContextManager.j
> ava:559) at
> org.apache.tomcat.service.http.HttpConnectionHandler.processCo
> nnection(HttpC
> onnectionHandler.java:160) at
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEnd
> point.java:338
> ) at java.lang.Thread.run(Thread.java:484) n
> 
> 
> Can someon tell me what else I do miss?
> Thanks,
> Connie
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org
> 

Mime
View raw message