AEM 6.5 as a Cloud Service component not working on Publish
My AEM component is working in all environments but once I put it into a Publish instance on my AEM it stops working. Furthermore, I tried on my localhost:4502, localhost:4503 and dispatcher localhost:8085 and everything works there so I don’t think the dispatcher is playing a role on this.
Works here (All Author parts on the URL):
https://author-p45436-e207252.adobeaemcloud.com/content/jm/global/en/index/Image-Rotator-test-2/jcr:content/root/container/cnt_full_width_conta_125908056/container/container_1541102346/imagerotator.assets.json?url=https://author-p45436-e207252.adobeaemcloud.com/content/jm/global/en/index/Image-Rotator-test-2.html?wcmmode=disabled&mode=selections&_=1699028963919
Does not work here (All Publish parts on the URL):
https://publish-p45436-e207252.adobeaemcloud.com/content/jm/global/en/index/Image-Rotator-test-2/jcr:content/root/container/cnt_full_width_conta_125908056/container/container_1541102346/imagerotator.assets.json?url=https://publish-p45436-e207252.adobeaemcloud.com/content/jm/global/en/index/Image-Rotator-test-2.html?wcmmode=disabled&mode=selections&_=1699028963919
BUT, this works (First Author and then Publish):
https://author-p45436-e207252.adobeaemcloud.com/content/jm/global/en/index/Image-Rotator-test-2/jcr:content/root/container/cnt_full_width_conta_125908056/container/container_1541102346/imagerotator.assets.json?url=https://publish-p45436-e207252.adobeaemcloud.com/content/jm/global/en/index/Image-Rotator-test-2.html?wcmmode=disabled&mode=selections&_=1699028963919
I am using AEM as a Cloud Service.
Thank you
More info:
Here is how the page appears that shows the broken component: https://publish-p45436-e207252.adobeaemcloud.com/en/Image-Rotator-test-2/
Even if I tried to use the link modification by the dispatcher, https://publish-p45436-e207252.adobeaemcloud.com/en/Image-Rotator-test-2/jcr:content/root/container/cnt_full_width_conta_125908056/container/container_1541102346/imagerotator.assets.json?url=https://publish-p45436-e207252.adobeaemcloud.com/content/jm/global/en/index/Image-Rotator-test-2.html?wcmmode=disabled&mode=selections&_=1699028963919
it does not work...
SOLUTION -------------
It turns out that there was an OSGI configuration called org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl.cfg.json on my code, there was a mapping that did not allowed the resources to map correctly. So I deleted the json file and now it is working!