No suitable driver found for jdbc:mysql://localhost/

1 resposta
S

Olá, é o seguinte, eu já baixei o .jar, coloquei na pasta lib, fui em build path, add jar e já adicionei ao meu projeto mas ele continua dando esse erro.

HTTP Status 500 -


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.RuntimeException: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost/saude

br.com.prosaude.jdbc.ConnectionFactory.getConnection(ConnectionFactory.java:14)

br.com.prosaude.jdbc.Login.(Login.java:12)

br.com.prosaude.servlet.Servlet.service(Servlet.java:19)

javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

root cause

java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost/saude

java.sql.DriverManager.getConnection(Unknown Source)

java.sql.DriverManager.getConnection(Unknown Source)

br.com.prosaude.jdbc.ConnectionFactory.getConnection(ConnectionFactory.java:11)

br.com.prosaude.jdbc.Login.(Login.java:12)

br.com.prosaude.servlet.Servlet.service(Servlet.java:19)

javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.33 logs.


Apache Tomcat/6.0.33

Alguém pode me ajudar?

1 Resposta

Guilherme_Gomes

Posta o código deste método: br.com.prosaude.jdbc.ConnectionFactory.getConnection()

Criado 31 de outubro de 2011
Ultima resposta 31 de out. de 2011
Respostas 1
Participantes 2