Could not publish server configuration for tomcat9 at localhost. Multiple Contexts have a path解决方案

今天小编学习SSH的时候遇到了如下的问题,在启动tomcat发布web应用的时候,报错Could not publish server configuration for tomcat9 at localhost.
Multiple Contexts have a path,具体图片如下Could not publish server configuration for tomcat9 at localhost. Multiple Contexts have a path解决方案

接着,小编进入了eclipse工作空间下.metadata.plugins\org.eclipse.wst.server.core\tmp0\conf\server.xml文件中删除了相应内容。结果还是不行,依然很会自动加上,小编百度了一个新方法,

打开server.xml

Could not publish server configuration for tomcat9 at localhost. Multiple Contexts have a path解决方案

删除重复项即可

Could not publish server configuration for tomcat9 at localhost. Multiple Contexts have a path解决方案