您的位置:首页 > 运维架构 > Tomcat

Target runtime Apache Tomcat v7.0 is not defined.错误解决方法

2015-08-01 15:55 549 查看
Target runtime Apache Tomcat v7.0 is not defined.错误解决方法

在工程目录下的.settings文件夹里,打开org.eclipse.wst.common.project.facet.core.xml文件,其内容是:

<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="Apache Tomcat v7.0"/>
<fixed facet="jst.web"/>
<fixed facet="wst.jsdt.web"/>
<fixed facet="java"/>
<installed facet="java" version="1.8"/>
<installed facet="jst.web" version="3.0"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>


修改为

<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<strong>  <runtime name="Apache Tomcat v8.0"/>
<fixed facet="jst.web"/>
<fixed facet="wst.jsdt.web"/>
<fixed facet="java"/>
<installed facet="java" version="1.8"/>
<installed facet="jst.web" version="3.0"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>


或者 复制其他工程的文件内容到本工程的文件中

转载:http://www.cnblogs.com/jifeng/archive/2012/02/01/2334909.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: