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

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.

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.