Hello,
I was trying to configure SmartClient 5.7 with mysql on Linux. Here are the steps that I followed
- Copied the mysql JDBC driver 5.1.5 into WEB-INF/lib folder
- Started the server.
- Opened the Admin Console from SDK Explorer
- Changed the Driver Implementor class to com.mysql.jdbc.Driver.
- Clicked on “Test”. It gives me error saying “Failure: unable to connect. Error from Driver: java.lang.ClassCastException: com.mysql.jdbc.Driver”
Can you please help. thanks.
Hi ninadtambe - That class actually uses the DriverManager interface rather than the DataSource interface. If you take a close look at the error it actually tells you that the ClassCastException is occurring because it can’t cast com.mysql.jdbc.Driver into javax.sql.DataSource.
What you need to do is switch the “Obtain Connections Using” select box to “DriverManager”, then put in “com.mysql.jdbc.Driver” into the “Driver Implementer” box, and specify “mysql” in the “Driver Name” box. These steps for me on Linux.
Works..
Thanks for your help. I think that is what I needed to do.