Could not publish server configuration for Tomcat v9.0 Server at localhost. Multiple Contexts have a

在使用eclipse加载tomcat服务器运行项目时遇到问题:
Could not publish server configuration for Tomcat v9.0 Server at localhost.
Multiple Contexts have a path of “/web2”.
Could not publish server configuration for Tomcat v9.0 Server at localhost. Multiple Contexts have a
说是有多个上下文路径,导致冲突,原因是
eclipse工作空间下.metadata.plugins\org.eclipse.wst.server.core\tmp0\conf\server.xml文件中标签所对应的名称项目重复,这应该是由于我直接复制了该项目。

Could not publish server configuration for Tomcat v9.0 Server at localhost. Multiple Contexts have a
只要把重复的删除即可.
Could not publish server configuration for Tomcat v9.0 Server at localhost. Multiple Contexts have a
如果你也是复制的,那么运行时一定要把不相干的项目从server上移除,具体如下:
Could not publish server configuration for Tomcat v9.0 Server at localhost. Multiple Contexts have a
移除复制项目:
Could not publish server configuration for Tomcat v9.0 Server at localhost. Multiple Contexts have a
Could not publish server configuration for Tomcat v9.0 Server at localhost. Multiple Contexts have a
运行成功:
Could not publish server configuration for Tomcat v9.0 Server at localhost. Multiple Contexts have a