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

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

    For Tomcat 8.5 if you are facing this issue, change your facet setting to 3.1

    Open file : {project_Folder}/.setting/org.eclipse.wst.common.project.facet.core

    Open org.eclipse.wst.common.project.facet.core XML file. Change to version as 3.1 Save and refresh the project you will find it you can add the resource to tomcat.

    This worked for me.. Thanks

提交回复
热议问题