Servlet it is not in the list of /system/console/components | Community
Skip to main content
Level 2
April 1, 2019

Servlet it is not in the list of /system/console/components

  • April 1, 2019
  • 1 reply
  • 2722 views

Hi,

I would greatly appreciate your help with this problem.

I can not find my Servlet created in the list of the link http://localhost:4502/system/console/components.

Link: https://i.imgur.com/EcZjC0J.png



I understand, according to the response of @rakhi4110, that if my Servlet is correctly registered then I should see it there. But I do not understand why I can not visualize the created Servlet.

Link: https://stackoverflow.com/questions/23162360/accessing-a-sling-servlet-in-cq5
Link: https://i.imgur.com/G3mskwc.png


I attach the code of my Servlet.

Link: https://i.imgur.com/tq3es30.png

Thank you very much for your time, greetings.

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

1 reply

arunpatidar
Community Advisor
Community Advisor
April 2, 2019

Hi,

Could you please check servlet status in your bundle? Is it active, disabled or unsatisfied.

Are other servlet available in component console?

Arun Patidar
j2rojasrAuthor
Level 2
April 3, 2019

Hi, @Arun Patidar. Thanks for your help.

My bundle was not active due to an error with the imported packages. There was a red message that said "package Can not be resolved".

What I did was verify the pom.xml of /myProject/core and I found an error with the jackrabbit-core package.

Link: https://i.imgur.com/Ck9KIsi.png https://i.imgur.com/huBjjZX.png


I uploaded my changes, checked the status of the bundle again and was already active.

Link: https://i.imgur.com/huBjjZX.png https://i.imgur.com/s6Dkr8d.png

Link: https://i.imgur.com/s6Dkr8d.png


Then I looked for my Servlets and found them.

Link: https://i.imgur.com/FqKPKLQ.png


Advice for those who are in a similar problem. There is no way that your Servlets can use if the Bundle is not in the Active state. If you see any "error" or "warning" message, it is best to correct them.

Thank you!

smacdonald2008
Level 10
April 3, 2019

Thank you for posting this information.