Eclipse Import Project After the project shows a small red fork, but there is no file errors in the project, there is no grammatical errors, baffled it ah, and later on the Internet to find some information that the project referenced the library path problem. Configure build path, "project", "right", "Build Path", "libraries", to see the referenced class library path. The internet says it's because of the reference error here, but the first thing I did when the project was imported was to modify the library here, so that's not the reason.
Error displayed in problems: Target runtime Apache Tomcat 6.0 is not defined. Checked the internet and finally found a solution. In the. Settings folder under the project directory, open the Org.eclipse.wst.common.project.facet.core.xml file with the following contents:
<?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>
Modify it to:
<?xml version= "1.0" encoding= "UTF-8"?> <faceted-project></faceted-project>
PS: After making the above changes, although there is no error, but want to publish the site demo when found that there is no "run as" and "Run on server" this option. At this point we create a DEMO2 Web project and then look at the. Settings under the Org.eclipse.wst.common.project.facet.core.xml, and we find that the content is:
<?xml version= "1.0" encoding= "UTF-8"?> <faceted-project> <runtime name= "Apache Tomcat v6.0.29 "/> <fixed facet=" Jst.web "/> <fixed facet= " java "/> <fixed facet= " Wst.jsdt.web "/> <installed facet=" java "version=" 1.6 "/> <installed facet=" Jst.web "version=" 2.5 "/> <installed facet=" Wst.jsdt.web "version=" 1.0 "/> </faceted-project>
Then we only need to copy this code to the website demo under the. Settings directory, the original org.eclipse.wst.common.project.facet.core.xml can be overwritten. After overwriting we can use "Run as" and "Run on server" to publish the demo at Eclipse.
Target Runtime Apache Tomcat v6.0 is not defined. Error resolution