Felix Servlet Filter not shown in status-httpwhiteboard console | Community
Skip to main content
NaziyaP
Level 2
May 28, 2019 2:53 AM UTC
Solved

Felix Servlet Filter not shown in status-httpwhiteboard console

Hi All,

I have been following the sample code from acs-aem-samples/SampleServletFilter.java at master · Adobe-Consulting-Services/acs-aem-samples · GitHub  for a felix servlet filter . I have copied exact same code in my workspace without any changes . When I upload the bundle and hit http://localhost:4502/system/console/status-httpwhiteboard , I don't see my filter registered under Registered Filter Services. Neither is my filter called in any scenario, I have added loggers to verify the same.

Is there any other configuration or property that needs to be set , apart from what is mentioned in the sample code?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
May 28, 2019 9:52 AM UTC

Hi,

Can you check if your bundle or service is active or not? if yes try to access any html page.

check another sample filter if helps:

aem63app-repo/CustomScreenFilter.java at master · arunpatidar02/aem63app-repo · GitHub

To know more about what is in the filter please check

Apache Sling :: Servlet Filter Support

Arun Patidar

2 replies

arunpatidar
arunpatidarAccepted solution
New Participant
May 28, 2019 9:52 AM UTC

Hi,

Can you check if your bundle or service is active or not? if yes try to access any html page.

check another sample filter if helps:

aem63app-repo/CustomScreenFilter.java at master · arunpatidar02/aem63app-repo · GitHub

To know more about what is in the filter please check

Apache Sling :: Servlet Filter Support

Translate
Arun Patidar
New Participant
Nov 16, 2020 9:43 PM UTC
Hi Arun, I tried the CustomScreenFilter but it seems not "installed". what I did is first put it in core project, and then build / autoInstallPackage it into AEM. But I cannot find it from aem console. and when I put breakpoint into CustomScreenFilter it didn't stop as well. Did I miss something? Would filter need extra config ?
Translate