This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes J2EE RI configured with mysql Database for Entity Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "J2EE RI configured with mysql Database for Entity Bean" Watch "J2EE RI configured with mysql Database for Entity Bean" New topic
Author

J2EE RI configured with mysql Database for Entity Bean

sudeep somarajan
Greenhorn

Joined: Mar 18, 2014
Posts: 3
Hi,

I am unable to configure an entity bean with mysql DB in RI. After making a new Enterprise Bean and successful verification, when i go to "Entity" tab and click on "Deployment Settings" and then "database setting"(Attached the screenshots), getting an error saying "Error connecting to database. java.sql.SQLException: No Suitable Driver".
I am able to connect to database through a java class using JDBC also the driver class is included in the J2EE_CLASSPATH env variable . Also attached the screenshot for Datasource configuration.
Unable to understand why the error is coming. Any help would be great.

Thanks in advance
Sudeep



[Thumbnail for 1.gif]


[Thumbnail for 2.gif]

 
 
subject: J2EE RI configured with mysql Database for Entity Bean
 
It's not a secret anymore!