Error while calling path servlet in publish environment AEMaaCS | Community
Skip to main content
Level 2
June 21, 2024
Solved

Error while calling path servlet in publish environment AEMaaCS

  • June 21, 2024
  • 2 replies
  • 1347 views

Hi, 

 

We have registered a servlet in AEMaaCS with path "/bin/cookieservlet". The servlet needs to be triggered when clickin on a button and redirect to different page. The functionality is working fine in author environment. But in publish environment we are getting Resource not found error for the /bin/cookieservlet path. 

 

Not able to access system/console either from author or publish. 

 

 

Can someone help me on this ?

 

 

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 Rohan_Garg

Hi @sushmana,

 

Couple of checkpoints for this - 

1. Check whether the dispatcher is able to filter and allow request forward to publish 

# /005 { /type "allow" /url "/bin/*"    }  # allow bin path access

Also try to bind your servlet to resource type and not path if possible.

You can refer to the below URL for other ideas - 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/custom-servlet-is-not-hitting-in-aem-as-cloud-service-publisher/m-p/442874

 

Hope this helps!

2 replies

h_kataria
Community Advisor
Community Advisor
June 21, 2024

Is it the publisher or dispatcher ? I think it might be blocked on dispatcher level. Something like

/0121 { /type "allow" /url "/bin/cookieservlet"}

 For accessing OSGI on cloud, you need access to developer console. Ask your system admin for that. 

 

Level 2
June 21, 2024

Hi @h_kataria 

Can a developer access OSGI on cloud higher environment , will they give access 

Thanks, Renju

 

h_kataria
Community Advisor
Community Advisor
June 22, 2024

Hi @renjush It varies from project to project. But generally developers can have access till dev environment. Stage and prod access is more restricted. 

Rohan_Garg
Community Advisor
Rohan_GargCommunity AdvisorAccepted solution
Community Advisor
June 21, 2024

Hi @sushmana,

 

Couple of checkpoints for this - 

1. Check whether the dispatcher is able to filter and allow request forward to publish 

# /005 { /type "allow" /url "/bin/*"    }  # allow bin path access

Also try to bind your servlet to resource type and not path if possible.

You can refer to the below URL for other ideas - 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/custom-servlet-is-not-hitting-in-aem-as-cloud-service-publisher/m-p/442874

 

Hope this helps!