Eclipse does not recognize problems with Web projects
1. If eclipse cannot recognize the Web project as a Web project after it is imported and cannot be published to the Tomcat container, you can take the following steps to try to resolve it: Select the item name and right-click, select "Properties", and select "On the left side of the panel" Project Facets ", how is the first configuration, click on the right-hand part of the" Convert to faceted form ... " Link. Select the dynamic WEB module item in the right section and the other unchanged.
Under the panel will appear "further Configuration availabe" link, after clicking Configure "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 Project facet Dynamic WEB Module version 3.0 is not supported appears when you publish your project, open the project file under the Eclipse working directory, or the module version conflict. into the. Settings directory, open
Org.eclipse.wst.common.project.facet.core.xml file, the version value of the modified Jst.web is 2.5 (low version). You can now publish the project PS: I modify the version of Dynamic Web module 2.5 in the project facets panel to prompt for an error message.