AEM 6.5 No data source found with name | Community
Skip to main content
carlp80611821
July 29, 2021
Solved

AEM 6.5 No data source found with name

  • July 29, 2021
  • 1 reply
  • 1259 views

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.
Best answer by Vijayalakshmi_S

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
July 29, 2021

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