Expand my Community achievements bar.

SOLVED

changing etc maps location in resource resolver factory breaks pages

Avatar

Level 2

I have manually changed resource resolver factory etc map location to /etc/map.publish in system console, after the bundles restart aem is working fine.  After creating a package of the resource resolver factory config, copying into code and redeploying this code into aem, the bundles restart and aem fails to load any pages except for crx de lite, crx package manager, and system/console.

I do not have etc maps at the /etc/map.publish to rule out any issues with incorrect maps.

Environment: Publish, AEM 6.5, Service Package 6, ACS Commons 4.11.2, WCM Core 2.13.4

Screen Shot 2021-08-23 at 7.31.36 PM.png

I do see this in the logs:

23.08.2021 19:31:03.013 *INFO* [qtp2081290430-1938] org.apache.sling.auth.core.impl.SlingAuthenticator handleLoginFailure: Unable to authenticate admin: UserId/Password mismatch.
23.08.2021 19:31:33.011 *INFO* [qtp2081290430-1940] org.apache.sling.auth.core.impl.SlingAuthenticator handleLoginFailure: Unable to authenticate admin: UserId/Password mismatch.

Stack traces for each above screenshot


Resource not found at path /libs/wcm/core/content/sites.html (404)

The requested URL /sites resulted in an error in Apache Sling Core Default Servlet.
Request Progress:

0 TIMER_START{Request Processing}
4 COMMENT timer_end format is {<elapsed microseconds>,<timer name>} <optional message>
20 LOG Method=GET, PathInfo=null
23 TIMER_START{handleSecurity}
1751 TIMER_END{1726,handleSecurity} authenticator org.apache.sling.auth.core.impl.SlingAuthenticator@76ae9894 returns true
1989 TIMER_START{ResourceResolution}
3256 TIMER_END{1265,ResourceResolution} URI=/sites resolves to Resource=NonExistingResource, path=/libs/wcm/core/content/sites.html
3264 LOG Resource Path Info: SlingRequestPathInfo: path='/libs/wcm/core/content/sites.html', selectorString='null', extension='html', suffix='null'
3265 TIMER_START{ServletResolution}
3270 TIMER_START{resolveServlet(/libs/wcm/core/content/sites.html)}
3915 LOG {0}: no servlet found
3923 TIMER_END{652,resolveServlet(/libs/wcm/core/content/sites.html)} Using servlet Apache Sling Core Default Servlet
3928 TIMER_END{662,ServletResolution} URI=/sites handled by Servlet=Apache Sling Core Default Servlet
3934 LOG Applying Requestfilters
3944 LOG Calling filter: com.adobe.granite.resourceresolverhelper.impl.ResourceResolverHelperImpl
3954 LOG Calling filter: org.apache.sling.security.impl.ContentDispositionFilter
3960 LOG Calling filter: com.adobe.granite.csrf.impl.CSRFFilter
3969 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
3976 LOG Calling filter: com.adobe.granite.httpcache.impl.InnerCacheFilter
3985 LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter
3990 LOG Calling filter: com.day.cq.wcm.core.impl.WCMRequestFilter
3997 LOG Calling filter: com.adobe.cq.wcm.core.components.internal.servlets.CoreFormHandlingServlet
4002 LOG Calling filter: com.adobe.granite.optout.impl.OptOutFilter
4014 LOG Calling filter: com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet
4018 LOG Calling filter: com.adobe.cq.social.commons.cors.CORSAuthenticationFilter
4022 LOG Calling filter: org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter
4032 LOG Calling filter: com.sherwin.tag.core.platform.filters.LoggingFilter
4037 LOG Calling filter: com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter
4041 LOG Calling filter: com.day.cq.wcm.core.impl.AuthoringUIModeServiceImpl
4048 LOG Calling filter: com.adobe.granite.rest.assets.impl.AssetContentDispositionFilter
4061 LOG Calling filter: com.adobe.granite.requests.logging.impl.RequestLoggerImpl
4067 LOG Calling filter: com.adobe.granite.rest.impl.servlet.ApiResourceFilter
4073 LOG Calling filter: com.day.cq.dam.core.impl.servlet.ActivityRecordHandler
4089 LOG Calling filter: com.day.cq.dam.core.impl.assetlinkshare.AdhocAssetShareAuthHandler
4094 LOG Calling filter: com.adobe.cq.social.ugcbase.security.impl.SaferSlingPostServlet
4103 LOG Applying Componentfilters
4106 LOG Calling filter: com.day.cq.personalization.impl.TargetComponentFilter
4110 LOG Calling filter: com.day.cq.wcm.core.impl.page.PageLockFilter
4117 LOG Calling filter: com.day.cq.wcm.core.impl.WCMComponentFilter
4146 LOG Calling filter: com.day.cq.wcm.core.impl.WCMDebugFilter
4161 TIMER_START{Apache Sling Core Default Servlet#0}
4178 LOG Applying Error filters
4182 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
4186 LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter
4191 TIMER_START{handleError:status=404}
4357 TIMER_END{163,handleError:status=404} Using handler Sling (Ad Hoc) Default Error Handler Servlet
5276 LOG Found processor for post processing ProcessorConfiguration: {contentTypes=[text/html], order=1, active=true, valid=true, processErrorResponse=true, pipeline=(generator=Config(type=htmlparser, config={}), transformers=(Config(type=linkchecker, config={}), Config(type=versioned-clientlibs, config={}), serializer=Config(type=htmlwriter, config={}))}
5932 TIMER_END{5930,Request Processing} Dumping SlingRequestProgressTracker Entries

ApacheSling/2.7 (jetty/9.4.26.v20200117, Java HotSpot(TM) 64-Bit Server VM 11.0.10, Mac OS X 10.15.7 x86_64)

Cannot find servlet to handle resource /content/we-retail/us/en (500)

The requested URL /content/we-retail/us/en.html resulted in an error in Apache Sling Core Default Servlet.
Request Progress:

0 TIMER_START{Request Processing}
3 COMMENT timer_end format is {<elapsed microseconds>,<timer name>} <optional message>
9 LOG Method=GET, PathInfo=null
12 TIMER_START{handleSecurity}
1449 TIMER_END{1435,handleSecurity} authenticator org.apache.sling.auth.core.impl.SlingAuthenticator@76ae9894 returns true
2096 TIMER_START{ResourceResolution}
3257 TIMER_END{1159,ResourceResolution} URI=/content/we-retail/us/en.html resolves to Resource=JcrNodeResource, type=cq:Page, superType=null, path=/content/we-retail/us/en
3266 LOG Resource Path Info: SlingRequestPathInfo: path='/content/we-retail/us/en', selectorString='null', extension='html', suffix='null'
3267 TIMER_START{ServletResolution}
3272 TIMER_START{resolveServlet(/content/we-retail/us/en)}
3879 TIMER_END{605,resolveServlet(/content/we-retail/us/en)} Using servlet Apache Sling Core Default Servlet
3885 TIMER_END{618,ServletResolution} URI=/content/we-retail/us/en.html handled by Servlet=Apache Sling Core Default Servlet
3893 LOG Applying Requestfilters
3904 LOG Calling filter: com.adobe.granite.resourceresolverhelper.impl.ResourceResolverHelperImpl
3938 LOG Calling filter: org.apache.sling.security.impl.ContentDispositionFilter
3944 LOG Calling filter: com.adobe.granite.csrf.impl.CSRFFilter
3951 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
3957 LOG Calling filter: com.adobe.granite.httpcache.impl.InnerCacheFilter
3965 LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter
3969 LOG Calling filter: com.day.cq.wcm.core.impl.WCMRequestFilter
3975 LOG Calling filter: com.adobe.cq.wcm.core.components.internal.servlets.CoreFormHandlingServlet
3979 LOG Calling filter: com.adobe.granite.optout.impl.OptOutFilter
3988 LOG Calling filter: com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet
3991 LOG Calling filter: com.adobe.cq.social.commons.cors.CORSAuthenticationFilter
3994 LOG Calling filter: org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter
4002 LOG Calling filter: com.adobe.cq.wcm.core.extensions.amp.internal.AmpModeForwardFilter
5210 LOG Calling filter: com.sherwin.tag.core.platform.filters.LoggingFilter
5214 LOG Calling filter: com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter
5218 LOG Calling filter: com.day.cq.wcm.core.impl.AuthoringUIModeServiceImpl
5224 LOG Calling filter: com.adobe.granite.rest.assets.impl.AssetContentDispositionFilter
5228 LOG Calling filter: com.adobe.granite.requests.logging.impl.RequestLoggerImpl
5235 LOG Calling filter: com.adobe.granite.rest.impl.servlet.ApiResourceFilter
5371 LOG Calling filter: com.day.cq.dam.core.impl.servlet.ActivityRecordHandler
5388 LOG Calling filter: com.day.cq.dam.core.impl.assetlinkshare.AdhocAssetShareAuthHandler
5391 LOG Calling filter: com.adobe.cq.social.ugcbase.security.impl.SaferSlingPostServlet
5401 LOG Applying Componentfilters
5404 LOG Calling filter: com.day.cq.personalization.impl.TargetComponentFilter
5406 LOG Calling filter: com.day.cq.wcm.core.impl.page.PageLockFilter
5410 LOG Calling filter: com.day.cq.wcm.core.impl.WCMComponentFilter
5464 LOG Calling filter: com.day.cq.wcm.core.impl.WCMDebugFilter
5479 TIMER_START{Apache Sling Core Default Servlet#0}
5497 LOG Applying Error filters
5500 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
5504 LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter
5509 TIMER_START{handleError:status=500}
5770 TIMER_END{259,handleError:status=500} Using handler Sling (Ad Hoc) Default Error Handler Servlet
6363 LOG Found processor for post processing ProcessorConfiguration: {contentTypes=[text/html], order=1, active=true, valid=true, processErrorResponse=true, pipeline=(generator=Config(type=htmlparser, config={}), transformers=(Config(type=linkchecker, config={}), Config(type=versioned-clientlibs, config={}), serializer=Config(type=htmlwriter, config={}))}
6636 TIMER_END{6635,Request Processing} Dumping SlingRequestProgressTracker Entries

ApacheSling/2.7 (jetty/9.4.26.v20200117, Java HotSpot(TM) 64-Bit Server VM 11.0.10, Mac OS X 10.15.7 x86_64)

Cannot find servlet to handle resource /libs/granite/core/content/login (500)

The requested URL /libs/granite/core/content/login.html resulted in an error in Apache Sling Core Default Servlet.
Request Progress:

0 TIMER_START{Request Processing}
3 COMMENT timer_end format is {<elapsed microseconds>,<timer name>} <optional message>
10 LOG Method=GET, PathInfo=null
13 TIMER_START{handleSecurity}
1307 TIMER_END{1275,handleSecurity} authenticator org.apache.sling.auth.core.impl.SlingAuthenticator@76ae9894 returns true
1546 TIMER_START{ResourceResolution}
1661 TIMER_END{114,ResourceResolution} URI=/libs/granite/core/content/login.html resolves to Resource=JcrNodeResource, type=granite/core/components/login, superType=null, path=/libs/granite/core/content/login
1670 LOG Resource Path Info: SlingRequestPathInfo: path='/libs/granite/core/content/login', selectorString='null', extension='html', suffix='null'
1670 TIMER_START{ServletResolution}
1674 TIMER_START{resolveServlet(/libs/granite/core/content/login)}
2076 TIMER_END{401,resolveServlet(/libs/granite/core/content/login)} Using servlet Apache Sling Core Default Servlet
2079 TIMER_END{409,ServletResolution} URI=/libs/granite/core/content/login.html handled by Servlet=Apache Sling Core Default Servlet
2085 LOG Applying Requestfilters
2103 LOG Calling filter: com.adobe.granite.resourceresolverhelper.impl.ResourceResolverHelperImpl
2110 LOG Calling filter: org.apache.sling.security.impl.ContentDispositionFilter
2114 LOG Calling filter: com.adobe.granite.csrf.impl.CSRFFilter
2119 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
2123 LOG Calling filter: com.adobe.granite.httpcache.impl.InnerCacheFilter
2131 LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter
2135 LOG Calling filter: com.day.cq.wcm.core.impl.WCMRequestFilter
2140 LOG Calling filter: com.adobe.cq.wcm.core.components.internal.servlets.CoreFormHandlingServlet
2144 LOG Calling filter: com.adobe.granite.optout.impl.OptOutFilter
2152 LOG Calling filter: com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet
2155 LOG Calling filter: com.adobe.cq.social.commons.cors.CORSAuthenticationFilter
2157 LOG Calling filter: org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter
2164 LOG Calling filter: com.sherwin.tag.core.platform.filters.LoggingFilter
2168 LOG Calling filter: com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter
2171 LOG Calling filter: com.day.cq.wcm.core.impl.AuthoringUIModeServiceImpl
2175 LOG Calling filter: com.adobe.granite.rest.assets.impl.AssetContentDispositionFilter
2180 LOG Calling filter: com.adobe.granite.requests.logging.impl.RequestLoggerImpl
2186 LOG Calling filter: com.adobe.granite.rest.impl.servlet.ApiResourceFilter
2306 LOG Calling filter: com.day.cq.dam.core.impl.servlet.ActivityRecordHandler
2326 LOG Calling filter: com.day.cq.dam.core.impl.assetlinkshare.AdhocAssetShareAuthHandler
2329 LOG Calling filter: com.adobe.cq.social.ugcbase.security.impl.SaferSlingPostServlet
2338 LOG Applying Componentfilters
2340 LOG Calling filter: com.day.cq.personalization.impl.TargetComponentFilter
2343 LOG Calling filter: com.day.cq.wcm.core.impl.page.PageLockFilter
2347 LOG Calling filter: com.day.cq.wcm.core.impl.WCMComponentFilter
2571 LOG Calling filter: com.day.cq.wcm.core.impl.WCMDebugFilter
2588 TIMER_START{Apache Sling Core Default Servlet#0}
2603 LOG Applying Error filters
2605 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
2608 LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter
2616 TIMER_START{handleError:status=500}
2753 TIMER_END{136,handleError:status=500} Using handler Sling (Ad Hoc) Default Error Handler Servlet
3269 LOG Found processor for post processing ProcessorConfiguration: {contentTypes=[text/html], order=1, active=true, valid=true, processErrorResponse=true, pipeline=(generator=Config(type=htmlparser, config={}), transformers=(Config(type=linkchecker, config={}), Config(type=versioned-clientlibs, config={}), serializer=Config(type=htmlwriter, config={}))}
3438 TIMER_END{3437,Request Processing} Dumping SlingRequestProgressTracker Entries

ApacheSling/2.7 (jetty/9.4.26.v20200117, Java HotSpot(TM) 64-Bit Server VM 11.0.10, Mac OS X 10.15.7 x86_64)

1 Accepted Solution

Avatar

Correct answer by
Level 2

I think I figured it out, I had an error in my searchpath setting

Screen Shot 2021-08-24 at 4.41.50 AM.png

which makes sense that any path that used /libs was faling

View solution in original post

5 Replies

Avatar

Community Advisor

Hi @mkaem ,

 

Since you are able to access system/console, have you tried reverting your change and see if that resolves the issue or deploying the previous version code is fixing the issue? Also, check which bundles are not in active state. 

Avatar

Level 2

I have tried reverting but that does not restore state. All bundles are active.

Avatar

Community Advisor

Do you have any ResourceResolverRewriter configuration enabled on your publish instance?

 

Ideally default etc-maps location will be configured as "/etc/map" and if you want to create separate map location based on environment you can create it as "/etc/map.publish.dev", "/etc/map.publish.stage", "/etc/map.publish.prod" and it can be configured with ResourceResolverfactory with respective run mode.

 

Here I believe you do not have any rules under etc/map.publish so I don't see a reason to configure the path.

Avatar

Level 2

I only have the default ResourceResolverRewriter configurations, I have not added or changed them. 

I am excluding the actual etc/map rules due to this issue. If I manually, change the etc map location and use repo tool for my etc map rules, everything works fine, but when I try to modify the ResourceResolverFactory using code, it fails.

 

 

Avatar

Correct answer by
Level 2

I think I figured it out, I had an error in my searchpath setting

Screen Shot 2021-08-24 at 4.41.50 AM.png

which makes sense that any path that used /libs was faling