I tried to add this servlet
package com.classmgt.servlet;
@WebServlet(\"/ControllerServlet\")
public class ControllerServlet extends HttpServlet {}
The servlets named [Register] and [com.TeamWork.controller.Register] are both mapped to the url-pattern [/Register] which is not permitted
getting this error you have to remove your servlet mapping from web.xml and just add @WebServlet("/Register") annotation + url
Register
com.TeamWork.controller
then your servlet class on the top add this one
@WebServlet("/Register")`
public class Register extends HttpServlet { }
it will work thanks