I have a servlet called Document
to which I want to redirect all requests starting with Document
something like
http://localhost:8080/CollabEdit/Document/abcdwcklsclds
should be redirected to servlet Document. So, I used an annotation like this :
@WebServlet("/Document/*")
However, for some unidentified reason, it gives an exception that says:
javax.servlet.ServletException: AS-WEB-CORE-00089
This exception is in Document.java is thrown as soon as I call
request.getRequestDispatched("main.html").forward(request, response) . otherwise no exception.
however, With same request in other servlets, main.html gets called just fine.