问题描述与解决
在problems中显示错误是:Target runtime Apache Tomcat 6.0 is not defined. 在网上查了一下终于找到解决方法。方法是:在工程目录下的.settings文件夹里,打开org.eclipse.wst.common.project.facet.core.xml文件,其内容是:
<?xmlversion="1.0"encoding="UTF-8"?> <faceted-project> <runtimename="Apache Tomcat v6.0"/> <fixedfacet="jst.web"/> <fixedfacet="jst.java"/> <installedfacet="jst.java"version="6.0"/> <installedfacet="jst.web"version="2.5"/> <installedfacet="wst.jsdt.web"version="1.0"/> </faceted-project>
将其改为
<?xml version="1.0" encoding="UTF-8" ?> <faceted-project> </faceted-project>