CA 5.4 issue: No suitable driver found for jdbc:mysql://localhost:3306/cq
Hi All,
I am facing an issue in configuring the database connectivity with MySql in CQ5.4. I used this http://helpx.adobe.com/experience-manager/using/datasourcepool.html tutorial for reference.
CQ5.4 is not returning connection object. Its throwing following exception.
java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/vic
at java.sql.DriverManager.getConnection(DriverManager.java:602)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:65)
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974)
at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
That's 'com.mysql.jdbc.Driver' class is not loaded into CQ5.4 environment. I am using mysql-connector-java-5.1.14 jar file for connectivity. It is successfully loaded as OSGI bundle.
Thanks.