AEM 6.5 as a Cloud Service component not working on Publish | Community
Skip to main content
Level 2
November 3, 2023

AEM 6.5 as a Cloud Service component not working on Publish

  • November 3, 2023
  • 3 replies
  • 1296 views

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!


This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
November 3, 2023

Hi, 

 

The resource is giving 404. Most likely you need to publish something, you don't have permission to read that path, or your dispatcher is blocking the call to that resource. Also please review whatever logic you are applying while calling this path: 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%3A%2F%2Fpublish-p45436-e207252.adobeaemcloud.com%2Fcontent%2Fjm%2Fglobal%2Fen%2Findex%2FImage-Rotator-test-2.html&mode=selections&_=1699043813622 

 

 

Esteban Bustamante
Level 2
November 10, 2023

updated question with the solution

Level 2
November 10, 2023

Yes, updated the question with the solution!

kautuk_sahni
Community Manager
Community Manager
November 6, 2023

@jm-joseperez  Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni
Level 2
November 10, 2023

Updated the question with the solution.