在使用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

相关文章:

  • 2021-07-22
  • 2021-05-28
  • 2021-07-26
  • 2021-09-20
  • 2021-06-30
  • 2021-05-17
  • 2022-12-23
  • 2021-08-06
猜你喜欢
  • 2021-11-18
  • 2022-12-23
  • 2022-01-20
  • 2021-05-03
  • 2021-07-28
相关资源
相似解决方案