The most common cases I encountered in the project were small red forks:
1, the project code itself has a problem. (This will not be said, the resolution of the error is OK)
2. The jar package in the project is missing. (Sometimes when Eclipse opens, the jar packet is lost, turn eclipse back on or re-introduce the jar package OK)
3, from the external import project, the project reference jar package location is not correct, this in the "Project right" Bulid path "Configure Build path" Libraries "Adjust the location of the package is OK.
These are common, today to say the following:
The problem arises: import a project from the outside, the previous three kinds of problems are solved, but the project is still small red fork, it seems problems in the description of "Target runtime Tomcat v6.0 is not defiend". There are also some problems as shown in:
Solution:
A, find a solution on the Internet, find the project. Setting folder, there is a "org.eclipse.wst.common.project.facet.core.xml" file, put "<faceted-project ></faceted-project> "The content of the element is deleted, after the deletion of the project is not error, but when the project was run found that there is no" run as "and" Run on server "option. The main reason is that we
Some Web properties of the project were removed, the workaround: Right-click the project >>properties>>project Facets, check Java, JavaScript, Dynamic Web Module. And then we can find out again
Run on server is in the middle of the time. The drawings are as follows:
B. In fact, think of it is "Org.eclipse.wst.common.project.facet.core.xml" This configuration file problem, first look at this file did not change the previous content:
Solution with Red Cross number after Eclipse import project