AEM 6.3 OSGI Filter Component with satisfied status | Community
Skip to main content
leopor
Level 2
Jun 2, 2018 3:42 PM UTC
Solved

AEM 6.3 OSGI Filter Component with satisfied status

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 · GitHub

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

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Jun 4, 2018 3:55 PM UTC

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.

9 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
Jun 4, 2018 3:55 PM UTC

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.

Translate
smacdonald2008
Level 10
Jun 4, 2018 3:53 PM UTC

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

Translate
leopor
leoporAuthor
Level 2
Jun 4, 2018 3:25 PM UTC

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

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

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

Thank you

Translate
smacdonald2008
Level 10
Jun 4, 2018 3:04 PM UTC

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

Translate
leopor
leoporAuthor
Level 2
Jun 4, 2018 12:28 PM UTC

This is the information:

I wasn't able to find a clue.

Translate
leopor
leoporAuthor
Level 2
Jun 4, 2018 12:24 PM UTC

I'm using AEM 6.3

This is the bundle info:

Translate
Feike_Visser1
Employee
Jun 3, 2018 5:55 PM UTC

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

Translate
joerghoh
Employee
Jun 3, 2018 5:15 PM UTC

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

Translate
arunpatidar
New Participant
Jun 2, 2018 5:31 PM UTC

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

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

Thank

Arun

Translate
Arun Patidar