Web project in Eclipse target runtime Apache Tomcat v7.0 is not defined.
Right-click in the error view to delete the wrong entry.
If not, try the following methods:
In the. Settings folder under the Eclipse Engineering directory, open the Org.eclipse.wst.common.project.facet.core.xml file,
Its contents are:
<?xml version= "1.0" encoding= "UTF-8"?>
<faceted-project>
<runtime name= "Apache Tomcat v7.0"/>
<fixed facet= "Java"/>
<fixed facet= "Wst.jsdt.web"/>
<fixed facet= "Jst.web"/>
<installed facet= "java" version= "1.7"/>
<installed facet= "Jst.web" version= "3.0"/>
<installed facet= "Wst.jsdt.web" version= "1.0"/>
</faceted-project>
Delete the middle part of the <faceted-project> tag, and then save the file as follows:
<?xml version= "1.0" encoding= "UTF-8"?>
<faceted-project>
</faceted-project>
Refresh the project in Eclipse and the red X is gone. Problem solving.