Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM 6.3 OSGI Filter Component with satisfied status

Avatar

Level 2

Hi everyone,

I'm trying to implement OSGI Filter Components, I deployed this bundle on my local: GitHub - Adobe-Consulting-Services/acs-aem-samples: AEM Code Samples repository and I'm testing this example: acs-aem-samples/SampleServletFilter.java at master · Adobe-Consulting-Services/acs-aem-samples · Git...

But when I look for the component in the osgi console I figured out that it has satisfied status.

1500247_pastedImage_3.png

I also tried to debug, I put a breakpoint inside doFilter method but nothing happens.

I'm testing the bundle on AEM 6.3 clean instance, I not deployed anything else.

Does anyone know what is happening?

Why doesn't the component have active status?

1 Accepted Solution

Avatar

Correct answer by
Level 10

David stated:

Because its never been invoked; unless its marked as immediate=true, it wont become active (one of the beauties of OSGi)

This is like any other OSGi component and nothing special about this filter.

View solution in original post

9 Replies

Avatar

Community Advisor

you are using Felix annotations. Can you try with new OSGI annotations

Using OSGi annotations (>= AEM6.2) - Experience Delivers

Thank

Arun

Avatar

Employee Advisor

Are you using AEM 6.2 SP2?

Can you open the bundle in the webconsole view and check which dependency is missing?

kind regards,
Jörg

Avatar

Employee

Indeed, go to the component view in /system/console, there get more detail why the component is 'satisfied'

Avatar

Level 2

I'm using AEM 6.3

1501487_pastedImage_0.png

This is the bundle info:

1501444_pastedImage_0.png

1501484_pastedImage_1.png

1501485_pastedImage_2.png

Avatar

Level 2

This is the information:

1501486_pastedImage_0.png

I wasn't able to find a clue.

Avatar

Level 10

I built this same code from the GitHub Repo...

Avatar

Level 2

Thank you smacdonald for you response.

I did the same, I moved the ResourceResolver to 158 line before I deployed the bundle the first time.

Actually, my problem is not with the bundle

1501539_pastedImage_0.png

My problem is with the service with this name "SampleSerletFilter" it appears with the satisfied status.

1501540_pastedImage_1.png

smacdonald Could you check on your local "/system/console/components/" if this SampleServletFilter appears with the same status?

Thank you

Avatar

Level 10

I am checking with the Consulting team here. I see same result for SampleServletFilter

Avatar

Correct answer by
Level 10

David stated:

Because its never been invoked; unless its marked as immediate=true, it wont become active (one of the beauties of OSGi)

This is like any other OSGi component and nothing special about this filter.