Where do the AEM native pages like aem/start.html run from | Community
Skip to main content
Level 2
November 19, 2022
Solved

Where do the AEM native pages like aem/start.html run from

  • November 19, 2022
  • 1 reply
  • 1635 views

Hi,

 

My question is a bit strange. Where does the code for the AEM application run from? For instance when I run localhost:4502/aem/start.html where is the aem/start.html code or what servlet does it trigger?

 

I am also trying to find the code for /crx/packmgr/service.jsp just to learn a bit more about the platform and how that works.

 

thanks

Sam

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

Hi @samflyn ,

When you hit /aem/start.html  below are the servlets and script will execute in order of preference for method for given method:

  1. /libs/granite/ui/components/shell/page/page.jsp
  2. org.apache.sling.servlets.get.impl.DefaultGetServlet
  3. org.apache.sling.jcr.webdav.impl.servlets.SlingWebDavServlet

Similarly for /crx/packmgr/service.jsp 

  1. org.apache.sling.servlets.get.impl.DefaultGetServlet
  2. org.apache.sling.jcr.webdav.impl.servlets.SlingWebDavServlet

You can check all such process here http://localhost:4502/system/console/servletresolver

Additionally, You can also get some more details by installing x-ray mode where you can see which all scripts are processing by navigating to any AEM Touch UI pages like /sites.html, /assets.html, and /aem/tags in x-ray mode. For more details please visit article [0].

[0]: https://www.bounteous.com/insights/2020/12/12/inspecting-aem-admin-ui-components-ease

Hope that helps!

Regards,

Santosh

1 reply

SantoshSai
Community Advisor
SantoshSaiCommunity AdvisorAccepted solution
Community Advisor
November 20, 2022

Hi @samflyn ,

When you hit /aem/start.html  below are the servlets and script will execute in order of preference for method for given method:

  1. /libs/granite/ui/components/shell/page/page.jsp
  2. org.apache.sling.servlets.get.impl.DefaultGetServlet
  3. org.apache.sling.jcr.webdav.impl.servlets.SlingWebDavServlet

Similarly for /crx/packmgr/service.jsp 

  1. org.apache.sling.servlets.get.impl.DefaultGetServlet
  2. org.apache.sling.jcr.webdav.impl.servlets.SlingWebDavServlet

You can check all such process here http://localhost:4502/system/console/servletresolver

Additionally, You can also get some more details by installing x-ray mode where you can see which all scripts are processing by navigating to any AEM Touch UI pages like /sites.html, /assets.html, and /aem/tags in x-ray mode. For more details please visit article [0].

[0]: https://www.bounteous.com/insights/2020/12/12/inspecting-aem-admin-ui-components-ease

Hope that helps!

Regards,

Santosh

Santosh Sai
SamFlynAuthor
Level 2
November 20, 2022

Mate this is some next-level type of help! Thank you ever so much for this detailed explanation!