eclipse 启动tomcat时弹出错误 Multiple Contexts hava a path of “/xxx”

 

Problem Occurred

    'Publishing to local tomcat at localhost...'has encountered a problem.

    Could not publish server configuration for local tomcat at localhost

    Multiple Contexts hava a path of “/xxx”

报错提示Multiple Contexts hava a path of

    那么如何解决Multiple Contexts hava a path of “/xxx”的错误呢?

    1、在Eclipse的Servers中单击“server.xml”文件并打开

在Eclipse的Servers中打开“server.xml”

    2、在"server.xml"文件中,可以看到重复定义的context,删掉1个即可

删除“server.xml”中重复定义的文件中,可以看到重复定义的context

posted @ 2016-04-01 14:36  门罗的魔术师  阅读(328)  评论(0编辑  收藏  举报