Expand my Community achievements bar.

SOLVED

Getting "A custom errorhandler for 404 responses" while hitting "<ip>:4502"

Avatar

Level 1

Getting "A custom errorhandler for 404 responses" while hitting "<ip>:4502",

 

where it should redirect to login page > "http://<ip>/libs/granite/core/content/login.html?resource=%2F&$$login$$=%24%24login%24%24&j_reason=u...

 

Facing this issue in Author instance.

Kindly suggest any solution.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Vips24 
You need to update the logic for custom 404 at /apps/sling/servlet/errorhandler

e.g.

https://github.com/arunpatidar02/com.aemlab.junitapp/tree/master/ui.apps/src/main/content/jcr_root/a... 



Arun Patidar

View solution in original post

3 Replies

Avatar

Community Advisor

Hello @Vips24 

Do the logs complain about a bundle or a service missing or stopped when you use that URL?

Can you set the logs to debug mode, if not already?

Also, when starting AEM up were there errors that were recorded in the logs?

 

thanks,

Preetpal

Avatar

Correct answer by
Community Advisor

Hi @Vips24 
You need to update the logic for custom 404 at /apps/sling/servlet/errorhandler

e.g.

https://github.com/arunpatidar02/com.aemlab.junitapp/tree/master/ui.apps/src/main/content/jcr_root/a... 



Arun Patidar

Avatar

Administrator

@Vips24 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni