如果导入不是在MyEclipse下建立的web项目,想添加到tomcat中时,会显示“No projects are available for deployment to this server...............”。其实可以简单地修改两个配置文件:
.project文件:在natures节点中添加webnature
com.genuitec.eclipse.j2eedt.core.webnature
org.eclipse.jdt.core.javanature
com.google.gwt.eclipse.core.gwtNature
org.eclipse.wst.jsdt.core.jsNature
.mymetadata文件,添加context-root和webrootdir
type="WEB"
name="DynaTable"
id="myeclipse.1263372301465"
context-root="/DynaTable"
j2ee-spec="1.4"
archive="DynaTable.war">
MyEclipse中添加web项目到tomcat,搜素材,soscw.com
MyEclipse中添加web项目到tomcat
标签:java ext 文件 com c type
原文地址:http://blog.csdn.net/zhangweikai966/article/details/25147443