Why is my servlet not getting picked up | Community
Skip to main content
Level 2
November 18, 2022
Solved

Why is my servlet not getting picked up

  • November 18, 2022
  • 1 reply
  • 946 views

Hi all,

I tried to replicate the Core : tableofcontents component into my codebase with the same file names . Now, when i author the component into my page. it is enabled only when i enable the core config .

com.adobe.cq.wcm.core.components.internal.servlets.TableOfContentsFilter

 It is not picking the servlet from my codebase, though i have increase the service ranking from 999 to 1000.

com.kiran.aem.base.core.servlets.TableOfContentsFilter

 where am i going wrong

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 Nikita___Garg

hi @kiran_22_12 ,

 

Please validate your approach with the one mentioned in blog Overriding Out Of The Box (OOTB) servlet in AEM | by Anirudh Sharma | Medium

 

This article explains step by step guide. Hope that helps.

 

Thanks,

Nikita Garg

1 reply

Nikita___GargAdobe EmployeeAccepted solution
Adobe Employee
December 7, 2022

hi @kiran_22_12 ,

 

Please validate your approach with the one mentioned in blog Overriding Out Of The Box (OOTB) servlet in AEM | by Anirudh Sharma | Medium

 

This article explains step by step guide. Hope that helps.

 

Thanks,

Nikita Garg

Level 2
December 7, 2022

Thanks @nikita___garg , I had referred the same article and solved it. By changing the name of the filter and playing around the servlet ranking, was able to achieve it.