Hi @src_aem_dev ,
Can you check if you have followed the below mentioned steps:
In AEM Dispatcher Config, set DispatcherPassError to ‘0’. This allows erring requests to be sent back to AEM.
- Create the proxy overlays for Sling errorhandler scripts (404.jsp and default.jsp) which include the acs-commons counterparts.
Create the overlay for 404.jsp
/apps/sling/servlet/errorhandler/404.jsp
<%@page session="false"%><%
%><%@include file="/apps/acs-commons/components/utilities/errorpagehandler/404.jsp" %>
Then create the overlay for the default.jsp
/apps/sling/servlet/errorhandler/default.jsp
<%@page session="false"%><%
%><%@include file="/apps/acs-commons/components/utilities/errorpagehandler/default.jsp" %>
- In your base page implementation, add the following cq:Widget to the Page Properties dialog
<errorpages
jcr:primaryType="cq:Widget"
path="/apps/acs-commons/components/utilities/errorpagehandler/dialog/errorpages.infinity.json"
xtype="cqinclude"/>OR create a your own custom pathfield widget
<errorpages
jcr:primaryType="cq:Widget"
fieldLabel="Error Pages"
fieldDescription="Error pages for this content tree"
name="./errorPages"
xtype="pathfield"/><?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="sling:OsgiConfig"
enabled="{Boolean}true"
cache.serve-authenticated="{Boolean}true"
cache.ttl="{Long}300"/>