eclipse 错误:
two or more web modules defined in the configuration have the same context root(/项目名)。to start this server you will need to remove the duplicate(s)
two or more web modules defined in the configuration have the same context root(/项目名)。to start this server you will need to remove the duplicate(s)
产生原因: 因为tomcat为项目建立服务器的配置出现错误。
解决方案:
1、将D:\Test\Servers\Tomcat v5.5 Server at localhost-config\server.xml当中新加入的错误Context删除,同时将D:\Test\test\.settings\org.eclipse.wst.common.component当中的deploy-name和property name的键值改为新项目的名称,重新加入tomcat的服务,问题解决。
2、如果你使用的是eclipse启动tomcat,在自己下载的 tomcat中找不到上面的这种情况,那么就到你项目的eclipse中的workspace中去找,如:....\项目名\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf文件下面找到server.xml文件,然后向第一种方法一样删除重复的
<Context docBase="项目名" path="/项目名"reloadable="true" source="org.eclipse.jst.j2ee.server:项目名"/>