Since the previous projects were developed using MyEclipse, it is now time to switch to eclipse. However, the project was imported into eclipse and found that the project was not a Web project and could not be deployed to Tomcat. This problem has been solved now.
First, make sure that eclipse on your machine is a Java EE version, or that you have installed the WTP plugin
Two. Close project first, and then modify the. project file under Eclipse Engineering:
Join in <natures> </natures>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
Join in <buildSpec> </buildSpec>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments> </arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
Three. Open project, and then refresh the project, right-click->properties->project facets->modify Project in projects, select Java and dynamic Web Module
Configure the context Root and content Directory and the source path. For more information, please refer to http://blog.csdn.net/hongchangfirst/article/details/7896283
Eclipse Import to Web project does not have run on server