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

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

    To Solve this Issue You will have to update your Dynamic Web Module version from 3.1 to 3.0. Eclipse dosen't allow these updation directly via Build Path-->Configure Build Path-->Project Facets.

    Follow these steps Open file : YourPrjectFolder/.setting/org.eclipse.wst.common.project.facet.core

    1. In project folder, goto .settings folder.
    2. Open org.eclipse.wst.common.project.facet.core XML document.
    3. Edit line to
    4. Save the changes.
    5. Goto Eclipse and refresh the project.

    You will be able to publish the your project now on Tomcat 7.

提交回复
热议问题