Tomcat version 7.0 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5 and 6 Web modules

前端 未结 10 2061
离开以前
离开以前 2021-01-01 14:15

I\'m trying to deploy a very simple HTTPServlet project using Tomcat 7 in my Eclipse J2EE perspective. I am getting the error \"Tomcat version 7.0 only supports J2EE 1.2, 1.

10条回答
  •  一生所求
    2021-01-01 14:43

    If you are getting "Tomcat version 7.0 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5 and 6 Web modules" error when trying to add project to Tomcat 7. Simply,

    Right click on the project --> go to project facets --> uncheck the dymanic web module (which should be 3.1)--> apply --> then change the dynamic web module to 3.0 --> apply and then save.

    Try to add now and it should work.

提交回复
热议问题