This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SQLException: No suitable driver

 
Ahamed Sharif
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am using JBoss and Mysql. I was developing a session bean class with
JDBC APIs but when i run the client it gives runtime error.
17:39:11,453 ERROR [STDERR] ClassNotFoundException:
17:39:11,453 ERROR [STDERR] No ClassLoaders found for:
com.mysql.jdbc.Driver
17:39:11,484 ERROR [STDERR] SQLException: No suitable driver
And I put Connector/J- lib jar file into JBoss-server-default-lib
directory and also tried in deploy directory, but it was showing the same
error .
Thanks,
Sharief
 
Rashmi Banthia
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the same configuration and I had to modify following xml files to get it work:
login-config.xml
standardjbosscmp-jdbc.xml
mysql-service.xml
Regards,
Rashmi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic