Why is my servlet not getting picked up | Community
Skip to main content
Level 2
Nov 18, 2022 7:31 AM UTC
Solved

Why is my servlet not getting picked up

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.
Nikita___GargAccepted solution
Employee
Dec 7, 2022 10:02 AM UTC

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

2 replies

Nikita___GargAccepted solution
Employee
Dec 7, 2022 10:02 AM UTC

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

Translate
Level 2
Dec 7, 2022 10:05 AM UTC

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.

Translate