내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Overlaying /sling/servlet/errorhandler on AEM as a Cloud Service

Avatar

Level 2

I'm trying to customize error page redirection by overlaying "apps/sling/servlet/errorhandler" according to this guide: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/develo...

It works well on local AEM instance. But CRXDE editing is not available on AEM as a Cloud Service. Is there any way to deploy/overlap Sling errorhandler codes to /apps within Cloud Service pipeline?

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Employee Advisor

Please check filter.xml and make sure this path is included 

/apps/sling

원본 게시물의 솔루션 보기

7 답변 개

Avatar

Employee Advisor

@ronnie_c You need to commit the changes in your code repository and deploy changes to AEMaaCS via Cloud Manager. 

 

Also, have you explored ACS Commons Error page handler capability [1] ?

 

[1] https://adobe-consulting-services.github.io/acs-aem-commons/features/error-handler/index.html 

Avatar

Level 2

Thanks for replying. I've checked out ACS Commons Error Page Handler. It also needs to create overlay jsp files under /apps.

Do you know at which directory or path I should put jsp file in code repository to make mvn install or pipeline deploy correctly? I've tried at "/ui.apps/src/main/content/jcr_root/apps/servlet/errorhandler" but it doesn't work.

Avatar

Employee Advisor

@ronnie_c The path should be 

/ui.apps/src/main/content/jcr_root/apps/sling/servlet/errorhandler/404.jsp

Avatar

Level 2

After I corrected jsp path, Maven did not install it when testing on my local AEM CRXDE. Maybe there is restriction or something wrong in pom configuration...

Avatar

정확한 답변 작성자:
Employee Advisor

Please check filter.xml and make sure this path is included 

/apps/sling

Avatar

Level 2

Solve it!💪 Thanks a lot.

Avatar

Community Advisor

Hi @ronnie_c 

In case if you are looking for just showing 404 and other custom error pages. You can do this directly at apache server

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-dispatcher-errordocume... 

Arun Patidar

AEM LinksLinkedIn