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

时间:2021-11-06 17:06:46

用tomcat9.0部署过的项目,再用低版本的tomcat部署,会报如下的错误:

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

解决方法:

1、找到该项目中的.settings文件夹

2、打开并org.eclipse.wst.common.project.facet.core.xml文件

修改前的代码:

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

修改后的代码:

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

 

3、重启eclipse