Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

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

Avatar

Level 3

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.

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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_...

 

 

sherinregi_0-1695638833918.png

 

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....

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

 

 

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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_...

 

 

sherinregi_0-1695638833918.png

 

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....

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