1. If you import a Web project,Eclipse cannot recognize it as a Web Project and therefore cannot publish to Tomcat container, you can take the following steps to try to resolve:
Select the project name and right-click, select the "Properties" Item, select "project Facets" on the left side of the panel for the item,How to configure it for the first time, click " Convert to faceted form : "link. In the right section, select the Dynamic Web Module Item, and the other is unchanged.
The "further configuration availabe" link appears at the bottom of the paneland is then configured with "Context root", "Content Directory". If your Context directory is not the default webcontent folder, you can change it to match the name in your project.
2. If "Projectfacet Dynamic WEB Module version 3.0is not supported" appears when you publish the project, which is the module version conflict, open the eclipse< /c3> The project file under working directory, enter the . Settings directory, open Org.eclipse.wst.common.project.facet.core.xml file, modify jst.web version The value is 2.5(low version).
Now it's time to publish the project.
PS: I modified the version of Dynamic Web module to 2.5in the project facets panel , An error message is prompted.
Eclipse does not recognize problems with Web projects