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

前端 未结 10 2096
离开以前
离开以前 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:20

    This problem can be resolved by by changing the Dynamic Web Module version to 3.0. This can be done in 2 ways.

    1. Goto project properties and click on project facets, now you see the option Dynamic Web Module, change it to 3.0

    2. For those who can't change the version in the above step, open org.eclipse.wst.common.project.facet.core.xml and change the version here to something like

    Now go to project facets and see the Dynamic Web Module version changed to 3.0

提交回复
热议问题