This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes SQLException: No suitable driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "SQLException: No suitable driver" Watch "SQLException: No suitable driver" New topic

SQLException: No suitable driver

Ahamed Sharif
Ranch Hand

Joined: Aug 24, 2003
Posts: 47
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:
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 .
Rashmi Banthia
Ranch Hand

Joined: Dec 22, 2003
Posts: 79
I have the same configuration and I had to modify following xml files to get it work:
I agree. Here's the link:
subject: SQLException: No suitable driver