Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang

 
vamshikrishna chinta
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends,




 
Kuladip Yadav
Ranch Hand
Posts: 162
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all

Don't put question in this fashion.

Please read this HowToAskQuestionsOnJavaRanch


Which version of mysql you are using ?

To download correct mysql connector
Check This

For Mysql 5.0 I am using mysql-connector-java-5.0.8-bin.jar

And make sure that jar file should be in classpath of application .


Thanks
 
vamshikrishna chinta
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kuldeep,

I am sorry yaar for not posting in a correct manner.I am very new to this forum.I will look after the link which you have sent.

I am using Mysql 5.5 along with Jboss with eclipse.I am keeping my jar files in jboss/server/default/lib.

If i am wrong please suggest me kuldeep.
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by vamshikrishna chinta:
Hi Kuldeep,

I am sorry yaar for not posting in a correct manner.I am very new to this forum.I will look after the link which you have sent.

I am using Mysql 5.5 along with Jboss with eclipse.I am keeping my jar files in jboss/server/default/lib.

If i am wrong please suggest me kuldeep.


Dont use Hindi word, other Rancher wont understand it !

mysql-connector-java-3.0.8-stable-bin.jar and the other is mysql-connector-java-3.2.0-alpha.zip.jar.Then also i am getting the same error.I need your help very urgently.


You are not using correct version of MySQL connector . As you are using MySQL 5.x, so search for the same version of connector , Kuldeep provides you the link, download the latest version (5.x ) and replace with old !
 
vamshikrishna chinta
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Do i need to import any package for mysql in java? I allready imported import java.sql.*;
import javax.sql.*;

Can you please guide me.
 
Kuladip Yadav
Ranch Hand
Posts: 162
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do i need to import any package for mysql in java? I allready imported import java.sql.*; import javax.sql.*;


If you are using eclipse then IDE itself point red mark id you are not importing required classes.


Connector/J 5.1 may be sutable for your mysql .
Download that and use it.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic