运行时没有找到tomcat v7.0
Eclipse
右键--》properties--》targeted runtime,把原项目的tomcat去掉勾选,换上自己的Tomcat
myEclipse
在工程目录下的.settings文件夹里,打开org.eclipse.wst.common.project.facet.core.xml文件,其内容是:
<?xml version="1.0" encoding="UTF-8"?> <faceted-project> <runtime name="Tomcat v7.0"/> <fixed facet="java"/> <fixed facet="jst.web"/> <fixed facet="wst.jsdt.web"/> <installed facet="java" version="1.6"/> <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> <fixed facet="java"/> <fixed facet="jst.web"/> <fixed facet="wst.jsdt.web"/> <installed facet="java" version="1.6"/> <installed facet="jst.web" version="3.0"/> <installed facet="wst.jsdt.web" version="1.0"/> </faceted-project>
保存,刷新!