20.06.2019 17:29:48.562 *INFO* [sling-threadpool-d9f18639-77ad-4d0a-855f-365d54c37495-(apache-sling-job-thread-pool)-160-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish Sending POST request to http://localhost:4503/bin/receive?sling:authRequestLogin=1
What version of AEM you are trying this on? The error that you posted doesn't seem to be related to the issue you are seeing. Let us know at a high level what you have tried (you already mentioned one, wrapping the PostegreSql jdbc jar as osgi bundle).
What are you expecting to see and what you are seeing.
I will try to reproduce from my end and share any suggestions I can think of. Good luck.
If I understand correctly, you are trying to fetch some information from postgresql for some transaction in AEM and not trying to replace tarMK with RDBMS. Couple of options to look at
- Are you able to successfully install the driver specific to postgreSQL? Make sure you have wrapped the driver jar to osgi bundle. If the drivers are not installed correctly, program to connect to the DB should spit some errors in the logs