運行時沒有找到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>
保存,刷新!