Sling servlet path not found in AEM Cloud after publishing the page in staging environment | Community
Skip to main content
Level 3
September 25, 2023
Solved

Sling servlet path not found in AEM Cloud after publishing the page in staging environment

  • September 25, 2023
  • 1 reply
  • 790 views

ex.


<form method="POST" enctype="multipart/form-data" action="/bin/myform">

<input type="submit" value="Submit">
</form>

 

servletpath=/bin/myform

 

--Servlet path is working on staging URL view as published mode page.

but after publishing same page in staging the servlet path is not working. 

 

https://www.stage.example.com/test-page1

 

error:-

 

-After clicking submit button 

 

Not Found

The requested URL was not found on this server.

 

 

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 sherinregi-1

Hi @vishal_s01 

Mostly likely bin path will be blocked at your dispatcher 

 

Look for default filters 

eg:

https://github.com/adobe/aem-guides-wknd/blob/main/dispatcher/src/conf.dispatcher.d/filters/default_filters.any

 

 

 

You can check for this entry whether its commented or not. In case commented please add a rule allowing your specific servlet path to access via dispatcher.

 

Add the custom entry to the below file

eg: https://github.com/adobe/aem-guides-wknd/blob/main/dispatcher/src/conf.dispatcher.d/filters/filters.any

/0051 { /type "allow" /url "/bin/myform" }

 

 

1 reply

sherinregi-1
Community Advisor
sherinregi-1Community AdvisorAccepted solution
Community Advisor
September 25, 2023

Hi @vishal_s01 

Mostly likely bin path will be blocked at your dispatcher 

 

Look for default filters 

eg:

https://github.com/adobe/aem-guides-wknd/blob/main/dispatcher/src/conf.dispatcher.d/filters/default_filters.any

 

 

 

You can check for this entry whether its commented or not. In case commented please add a rule allowing your specific servlet path to access via dispatcher.

 

Add the custom entry to the below file

eg: https://github.com/adobe/aem-guides-wknd/blob/main/dispatcher/src/conf.dispatcher.d/filters/filters.any

/0051 { /type "allow" /url "/bin/myform" }

 

 

Level 3
September 25, 2023

Hi @sherinregi-1 

Thanks for the help.

 

Now, its working.