eclipse中修改web Module

在eclipse的工程上选择属性,再选择Project Facets里面中选择Dynamic Web Module ,将3.0修改为2.5,提示如下信息:

CannotchangeversionofprojectfacetDynamicWebModuleto2.5

修改办法:

Openthenavigatorviewandfindthatthereisa.settingsfolderunderyourprojectexpanditandthenopenthefile:org.eclipse.wst.common.project.facet.core.Deletethecontentofthisfileandrightclickontheprojectandclickonproperties.GotoProjectFacatsinthepopupwindowthereyoucanclickonruntimetabsandconvertyourprojecttothenewfacetyouwant.

或者直接修改

<installedfacet="jst.web"version="2.5"/>

再次选择tomcat6就可以正常使用了。

相关推荐