Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

registrar ruta tipo post

Avatar

Level 2

hello a new consumtal I am trying to register a post method slingservlet but when I use it with the ajax I get the error 500 if I could collaborate another way to register it this is the route that I gave thanks for the help

@SlingServlet(paths = {"/bind/gamerstore/values/template"}, methods = {"POST"})

1 Accepted Solution

Avatar

Correct answer by
Level 10

Make sure the OISGi bundle that defines the Servlet is in Active State.

View solution in original post

3 Replies

Avatar

Community Advisor

Hi,

Can you post your ajax call code and Sling servlet code as well.

500 means there is an issue with your sling servlet code.



Arun Patidar

Avatar

Level 4

Puedes postear el error.log para ver el stacktrace y ver por que falla.

Avatar

Correct answer by
Level 10

Make sure the OISGi bundle that defines the Servlet is in Active State.