Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

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

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

Screen Shot 2022-11-19 at 8.48.31 PM.png

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].

console.png

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

Hope that helps!

Regards,

Santosh

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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

Screen Shot 2022-11-19 at 8.48.31 PM.png

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].

console.png

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

Hope that helps!

Regards,

Santosh

Avatar

Level 2

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