Expand my Community achievements bar.

Why does my new AEM servlet stay in satisfied state?

Avatar

Level 1

After several attempts its weird to see a servlet stays in satisfied state and not active.

1. what are the possible AEM servlet states?

2. How do we move a servlet from satisfied to active state? The component annotation already has immediate=true

 

3 Replies

Avatar

Community Advisor

Hi @Explorer1 


It looks like you are using some service in your servlet, eg.

@Reference
private CustomReferenceService customReferenceService;

Please ensure that all the services being used in servlet is in active state. 

Also I believe you must have a Impl class that is implementing the service. So try to use 

@Reference
private CustomReferenceServiceImpl customReferenceServiceImpl;

Hope that helps!


Regards,
Santosh

Avatar

Employee Advisor

@Explorer1 Go to bundle and click it, it should show you the service and if any unresolved dependency

Avatar

Community Advisor

Hi,

Check the reference classes.

Try to remove the references and check, the only reason is unresolved dependency.



Arun Patidar