Target Runtime Apache Tomcat v6.0 is not defined. Error resolution

Source: Internet
Author: User
Tags apache tomcat

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.