Expand my Community achievements bar.

SOLVED

Why is my servlet not getting picked up

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

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

Avatar

Level 3

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.