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

时间:2021-04-04 17:06:00

遇见的问题:Web项目不能通过eclipse加载到服务器上

 

1.在eclipse的workspace里面找到该项目.settings文件夹

2.编辑org.eclipse.wst.common.project.facet.core.xml文件   版本不能超过3.0

<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
  <fixed facet="wst.jsdt.web"/>
  <installed facet="wst.jsdt.web" version="1.0"/>
  <installed facet="java" version="1.7"/>
  <installed facet="jst.web" version="3.0"/>
</faceted-project>
3.重启eclipse

原文链接:https://caleb-520.iteye.com/blog/2262216