Why my servlet component is in "satisfied" state. Will it affect servlet's working? | Community
Skip to main content
Level 2
May 16, 2021
Solved

Why my servlet component is in "satisfied" state. Will it affect servlet's working?

  • May 16, 2021
  • 3 replies
  • 5465 views

when i am starting my servlet, it is not working and in my friends aem instance it is working. 
When i checked in components in web console, it is in "satisfied" state. Will this affect the working of servlet. What can I do to make the servlet to work?

Thanks in advance!!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Asutosh_Jena_

Hi @sushmapoojitha 

 

It looks like you are using the below service:

 

@Reference

RedisClusterService redisclusterservice;

 

Please ensure the service is in active state. 

 

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

 

@Reference

private RedisClusterServiceImpl redisclusterserviceImpl;

 

Update:

I see the "immediate = true" flag is missing in @component annotation. Please add the below line.

 

@Component(immediate = true, service = RedisClusterService.class)

This will make the component active and your servlet will resolve.

 

Hope this helps!

Thanks

3 replies

Ritesh_Mittal
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
May 16, 2021
 
 

Hi @sushmapoojitha ,

 

Satisfied means all the dependencies/service reference of that component is reachable. Can you just follow below steps

 

1. Disable the servlet from http://localhost:4502/system/console/components.

2. Clear the error.log file.

3. Try activating the servlet again.

4. Check the error log.

 

Also, I notice that the first letter of reference and component annotations should be in upper case, but I assume that would be just typo error while posting.

 

Asutosh_Jena_
Community Advisor
Asutosh_Jena_Community AdvisorAccepted solution
Community Advisor
May 16, 2021

Hi @sushmapoojitha 

 

It looks like you are using the below service:

 

@Reference

RedisClusterService redisclusterservice;

 

Please ensure the service is in active state. 

 

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

 

@Reference

private RedisClusterServiceImpl redisclusterserviceImpl;

 

Update:

I see the "immediate = true" flag is missing in @component annotation. Please add the below line.

 

@Component(immediate = true, service = RedisClusterService.class)

This will make the component active and your servlet will resolve.

 

Hope this helps!

Thanks

Level 2
May 16, 2021
Hi @asutosh_jena_, i tried but after adding "private RedisClusterServiceImpl redisclusterserviceImpl;", it is showing "unsatisfied" and service "redisclusterservice" is not added in components
Level 2
May 28, 2021

There was a jar file issue. Added correct jar and it is working fine now.

Thanks everyone!!