Hello,
I've installed AEM on my local Mac desktop. I am able to connect to localhost:4502, but on localhost:4503 I'm getting this error in my browser when I try to connect:
Not Found
Cannot serve request to /content.html in org.apache.sling.servlets.get.DefaultGetServlet
Any ideas what is the issue here:
This is the jar file I'm using:
aem-sdk-quickstart-2023.1.10675.20230113T110236Z-220900.jar
Renamed to:
aem-publish-p4503.jar
I'm using:
java version "11.0.17" 2022-10-18 LTS
Here is the complete output from my browser:
http://localhost:4503/content.html
Not Found
Cannot serve request to /content.html in org.apache.sling.servlets.get.DefaultGetServlet
Request Progress:
0 TIMER_START{Request Processing}
3 COMMENT timer_end format is {<elapsed microseconds>,<timer name>} <optional message>
15 LOG Method=GET, PathInfo=null
29 TIMER_START{handleSecurity}
3372 TIMER_END{3342,handleSecurity} authenticator org.apache.sling.auth.core.impl.SlingAuthenticator@38ef6011 returns true
3729 TIMER_START{ResourceResolution}
4878 TIMER_END{1147,ResourceResolution} URI=/content.html resolves to Resource=JcrNodeResource, type=sling:OrderedFolder, superType=null, path=/content
4889 LOG Resource Path Info: SlingRequestPathInfo: path='/content', selectorString='null', extension='html', suffix='null'
4889 TIMER_START{ServletResolution}
4893 TIMER_START{resolveServlet(/content)}
6198 TIMER_END{1303,resolveServlet(/content)} Using servlet org.apache.sling.servlets.get.DefaultGetServlet
6205 TIMER_END{1314,ServletResolution} URI=/content.html handled by Servlet=org.apache.sling.servlets.get.DefaultGetServlet
6210 LOG Applying REQUESTfilters
6222 LOG Calling filter: com.adobe.granite.resourceresolverhelper.impl.ResourceResolverHelperImpl
6233 LOG Calling filter: org.apache.sling.security.impl.ContentDispositionFilter
6241 LOG Calling filter: com.adobe.granite.csrf.impl.CSRFFilter
6631 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
6642 LOG Calling filter: com.adobe.granite.httpcache.impl.InnerCacheFilter
6660 LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter
6668 LOG Calling filter: com.day.cq.wcm.core.impl.WCMRequestFilter
6684 LOG Calling filter: com.adobe.cq.wcm.core.components.internal.servlets.CoreFormHandlingServlet
6692 LOG Calling filter: com.adobe.granite.optout.impl.OptOutFilter
6704 LOG Calling filter: com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet
6719 LOG Calling filter: com.day.cq.dam.core.impl.servlet.DisableLegacyServletFilter
6729 LOG Calling filter: org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter
6735 LOG Calling filter: com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter
6741 LOG Calling filter: com.day.cq.wcm.core.impl.AuthoringUIModeServiceImpl
6749 LOG Calling filter: com.adobe.granite.rest.assets.impl.AssetContentDispositionFilter
6760 LOG Calling filter: com.adobe.granite.requests.logging.impl.RequestLoggerImpl
6771 LOG Calling filter: com.adobe.granite.rest.impl.servlet.ApiResourceFilter
7069 LOG Calling filter: com.day.cq.dam.core.impl.servlet.ActivityRecordHandler
7105 LOG Calling filter: com.day.cq.dam.core.impl.assetlinkshare.AdhocAssetShareAuthHandler
7119 LOG Applying Componentfilters
7125 LOG Calling filter: com.day.cq.personalization.impl.TargetComponentFilter
7132 LOG Calling filter: com.day.cq.wcm.core.impl.page.PageLockFilter
7139 LOG Calling filter: com.day.cq.wcm.core.impl.WCMComponentFilter
7381 LOG Calling filter: com.day.cq.wcm.core.impl.monitoring.PageComponentRequestFilter
7392 LOG Calling filter: com.adobe.granite.metrics.knownerrors.impl.ErrorLoggingComponentFilter
7400 LOG Calling filter: com.adobe.cq.dam.cfm.ui.impl.EditorCacheFilter
7409 LOG Calling filter: com.day.cq.wcm.core.impl.WCMDebugFilter
7428 TIMER_START{org.apache.sling.servlets.get.DefaultGetServlet#0}
7487 LOG No renderer for extension html
7997 LOG Applying Error filters
8009 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
8017 LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter
8044 TIMER_START{handleError:status=404}
8721 TIMER_END{675,handleError:status=404} Using handler BundledScriptServlet (/libs/sling/servlet/errorhandler/404.jsp)
22148 LOG Adding the bindings of com.day.cq.wcm.scripting.impl.WCMBindingsValuesProvider took 2567 microseconds which is above the hardcoded limit of 1000 microseconds; if this message appears often it indicates that this BindingsValuesProvider has an impact on general page rendering performance.
22166 LOG Adding bindings took 3221 microseconds
64908 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=mobile, config=JcrPropertyMap [node=Node[NodeDelegate{tree=/libs/cq/config/rewriter/default/transformer-mobile: { jcr:primaryType = nt:unstructured, component-optional = true}}], values={jcr:primaryType=nt:unstructured, component-optional=true}]), Config(type=mobiledebug, config=JcrPropertyMap [node=Node[NodeDelegate{tree=/libs/cq/config/rewriter/default/transformer-mobiledebug: { jcr:primaryType = nt:unstructured, component-optional = true}}], values={jcr:primaryType=nt:unstructured, component-optional=true}]), Config(type=contentsync, config=JcrPropertyMap [node=Node[NodeDelegate{tree=/libs/cq/config/rewriter/default/transformer-contentsync: { jcr:primaryType = nt:unstructured, component-optional = true}}], values={jcr:primaryType=nt:unstructured, component-optional=true}]), serializer=Config(type=htmlwriter, config={}))}
66873 TIMER_END{66870,Request Processing} Dumping SlingRequestProgressTracker Entries
Solved! Go to Solution.
Views
Replies
Total Likes
Hello @earl2
If its a fresh install of AEM publish instance, then it might not have any sample content.
You can install sample content by downloading a package from Release WKND Site - v2.1.2 · adobe/aem-guides-wknd · GitHub
- To login to publish URL use http://localhost:4503/libs/granite/core/content/login.html
- Once logged in, install the sample content. You would now be able to access pages. Sample pages available can be found via Sites UI / CRXDE
- You can also change the default page as suggested by @Shiv_Prakash_Patel and @Lokesh_Vajrala
Hi @earl2, you can refer to this detailed thread on how to configure the default path in publish instance - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/configure-default-publish-...
Hi @earl2 ,
content.html is not a valid page in the publisher, so it will give you a Not Found error.
Just try the we-retail page - http://localhost:4503/content/we-retail/us/en.html . It should work properly.
If not please check the Day CQ Root Mapping Configuration for the default page path and change it according to your requirements.
Regards,
Shiv
Hello @earl2
If its a fresh install of AEM publish instance, then it might not have any sample content.
You can install sample content by downloading a package from Release WKND Site - v2.1.2 · adobe/aem-guides-wknd · GitHub
- To login to publish URL use http://localhost:4503/libs/granite/core/content/login.html
- Once logged in, install the sample content. You would now be able to access pages. Sample pages available can be found via Sites UI / CRXDE
- You can also change the default page as suggested by @Shiv_Prakash_Patel and @Lokesh_Vajrala
When you install publish it navigates to this default path which may not be available in instance
Navigate to local crx/de and get some existing content path then try to access that content, it should work properly
Below is the sample URL
http://localhost:4503/content/we-retail/us/en.html
If you need more information on installation check this video link.
Views
Likes
Replies