Check out the servlet class. This will be @WebServlet ("/ xyz"). comment on this line and then it should work fine.
Or you can use it as @WebServlet (value = "/ create", name = "create_subscription")
In fact, when you use @WebServlet ("/ xyz"), it treats the servlet name as the fully qualified name of the servlet. Therefore, tomcat assumes that you have two servlet mappings for the same URL, so it gives you an error.
source share