1. First make sure that your eclipse is a Java EE version, or that you have installed the WTP plugin
2. Then modify the. project file under Eclipse Engineering:
3. 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>
4. 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>
5. Refresh project, right click->properties->project facets->modify Project, select Java and dynamic Web Module, Check tomcat within runtime.
(Configuring Context Root and Content Directory and the source path---not required)6.[Optional] Modify the Org.eclipse.wst.common.component file in the. Settings folder in the project (change "webcontent" to "WebRoot")
< XML version= "1.0" encoding= "UTF-8"?>
< Project-modules id= "Modulecoreid" project-version= "1.5.0" >
<wb-module deploy-name= "Logistics_portal" >
<wb-resource deploy-path= "/" source-path= "/webroot" tag= "Defaultrootsource"/>
<wb-resource deploy-path= "/web-inf/classes" source-path= "/src"/>
<wb-resource deploy-path= "/web-inf/classes" source-path= "/test"/>
<property name= "Context-root" value= "Logistics_portal"/>
<property name= "Java-output-path" value= "/logistics_portal/webroot/web-inf/classes"/>
</wb-module>
</project-modules>
Also, if AXIS2 only supports version 2.5 of the Web module, your Web Module version is higher than 2.5, then the Org.eclipse.wst.common.project.facet.core file in the. Setting directory can be modified to the corresponding version.
< XML version= "1.0" encoding= "UTF-8"?>
< faceted-project>
<fixed facet= "Wst.jsdt.web"/>
<installed facet= "java" version= "1.6"/>
<installed facet= "Jst.web" version= "2.5"/>
<installed facet= "Wst.jsdt.web" version= "1.0"/>
</faceted-project>