Caused by: java.lang.IllegalArgumentException: The servlets named [ControllerServlet] and [com.classmgt.servlet.ControllerServlet] are both mapped to the url-pattern [/ControllerServlet] which is not permitted
运行j2ee程序,一直遇到这个错,发现是因为新版本的eclipse不会去自己生成web.xml,也不需要自己去配置xml文件。
eclipse已经有另外一种好的解决方案:利用@WebServlet
annotation
所以你重复配置了这个。
解决方案是删除web.xml文件。