Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

AEM Servlet internal server error

Level 6
Level 6

I registered my servlet like below :

@Component(service= Servlet.class,

  Constants.SERVICE_DESCRIPTION + "=custom reporting servlet",
   "sling.servlet.paths="+ "/bin/commentexcelreporting"


   public class CommentReporting  extends SlingAllMethodsServlet {



but during accessing it is showing me internal 500 server error .

logs in error.logs file

19.10.2019 01:32:47.885 *WARN* [0:0:0:0:0:0:0:1 [*********************] GET /bin/commentexcelreporting HTTP/1.1] Requested Path /bin/commentexcelreporting.servlet is not in available search paths

P.S.  I have also checked in configuration /bin/ is allowed

Please note : I am using aem 6.4 version ....


Please let me know what can be the issue ?

In lower version of AEM like 6.0 with @slingservlet(path="") in this format whole code was working .

Bundle is active ....I can see my servlet as well inside the bundle .

0 Replies