Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

Sling servlet is not resolving

Avatar

Level 9

 Hi All,

We have working servlet and able to use it but suddenly it is not working ,when i try to check existence of this resource using Resource Resolver from Felix Console Config manager it's not resolving.

If anyone knows the reason and what could be the resolution for this issue.

Thanks In Advance.

Thanks,

Kishore

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

can you please check crxde logs when you are installing package in publish instance. you should be able to see your servlet in logs

View solution in original post

10 Replies

Avatar

Level 10

It would be great if you can share the code snippet.

One more thing, as you said it suddenly stopped working, did you made any code changes, is it working once you undo code changes?

Avatar

Employee

Hi,

Kishore can you see your servlet in http://localhost:4502/system/console/components

Also, does the package/jar you deploy definitely have the servlet class in it?

Any errors when you are deploying to AEM in error.log?

Has someone changed the path/signature/resource type of the servlet?

Regards,

Opkar

Avatar

Level 9

Opkar Gill wrote...

Hi,

Kishore can you see your servlet in http://localhost:4502/system/console/components

Also, does the package/jar you deploy definitely have the servlet class in it?

Any errors when you are deploying to AEM in error.log?

Has someone changed the path/signature/resource type of the servlet?

Regards,

Opkar

 

one more thing same servlet is resolving in author but same is not resolving on publisher.

i could see this servlet under the felix components section.

Avatar

Employee

Is it working correctly in the Author instance?

Is the issue only in the publish instance?

Avatar

Level 9

Opkar Gill wrote...

Is it working correctly in the Author instance?

Is the issue only in the publish instance?

 

this issue only in publisher instance.

On author it's working fine.

Avatar

Employee

It's the same package deployed to the publish instance.

In chrome dev tools, do you see the request for the servlet? When you say it is not working, what error code is being returned to the browser.

What happens when you try to call the servlet(with parameters is required) from a browser window.

Can you check the request.log file to see what http code is returned.

Avatar

Level 9

Opkar Gill wrote...

It's the same package deployed to the publish instance.

In chrome dev tools, do you see the request for the servlet? When you say it is not working, what error code is being returned to the browser.

What happens when you try to call the servlet(with parameters is required) from a browser window.

Can you check the request.log file to see what http code is returned.

 

 

same package only deployed on publisher side as well.

I am seeing 404 response when requesting for this servlet.

 

Getting below message when requesting with required parameters.

 No resource found

RequestURI=/apps/elibrary/servlets/SABAConnectionServlet

Servlet= /apps/sling/servlet/errorhandler/404.html 

Avatar

Correct answer by
Level 10

Hi,

can you please check crxde logs when you are installing package in publish instance. you should be able to see your servlet in logs

Avatar

Level 10

As a test  try changing the path and redeploy. Let us know if that hit the servlet with new path.

Avatar

Level 10

One of your reference would not be working and hence their might be an issue. Can you post the error log ?