AEM 6.5 No data source found with name | Community
Skip to main content
carlp80611821
New Participant
Jul 29, 2021 10:03 AM UTC
Solved

AEM 6.5 No data source found with name

Hello, I was trying to connect MySQL to AEM using Service but I got problem while doing it. Can you help me identify where the problem is?
DatabaseService.java

Here's my the datasource configuration

and the bundle that I've been using for the driver class

Here's the error I got from logger of my service.

com.ravens.core.servlets.DatabaseService ERROR OCCURED {}
com.day.commons.datasource.poolservice.DataSourceNotFoundException: No data source found with name 'my database' (after asking 0 providers)

Thank you in advance

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
Jul 29, 2021 1:37 PM UTC

Hi @carlp80611821,

You should use an OSGi configuration named "Day commons JDBC Connections Pool" instead of Apache Sling Connection Pooled DataSource

Official Documentation related to this subject - https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/jdbc.html?lang=en

1 reply

Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
Jul 29, 2021 1:37 PM UTC

Hi @carlp80611821,

You should use an OSGi configuration named "Day commons JDBC Connections Pool" instead of Apache Sling Connection Pooled DataSource

Official Documentation related to this subject - https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/jdbc.html?lang=en

Translate