Rob Spoor wrote:Are you sure that you have a class called tutorController in package controller? Because the error message indicates you don't, but that's what you've defined in web.xml.
About the 404, without a mapping in either web.xml or using the @WebServlet annotation, the container doesn't know what servlet should be used to handle the request, and that's why you get the 404.
I am most certain that I have. I spent a few hours to make sure that the servlet mapping etc in the web.xml is correct too.
However, I have also read from the internet that from javaEE 7 onwards, if there is annotation, you won't even need the deoployment descriptor.
Anyway, I resolved the problem by re-starting the eclipse.
This problem, however, still appear on and off.
I wish there is a way to eradicate it for good.