Avatar

Level 5

You are correct, the error indicates that AEM is unable to connect to the data source, that means we have to check the data source configuration.

 

Since you're using JDBC, you need to configure the Apache Sling Connection Pooled DataSource OSGi configuration: https://experienceleague.adobe.com/docs/experience-manager-learn/forms/storing-and-retrieving-form-d...

Here's a video demonstrating the above: https://www.youtube.com/watch?v=XGVJLbgo8lU

 

Once the datasource has been configured correctly and AEM is able to connect to it, you should not see that error.

 

Note: In the above video you will notice that the person installed the JDBC jar by directly uploading it to OSGi. Thats not the best practice, however its quick to test it out this way. I suggest to do the steps on your local first.