首页 > 代码库 > Multiple Contexts have a path of "/xxxx"问题解决

Multiple Contexts have a path of "/xxxx"问题解决

转自:http://blog.csdn.net/ivanzhangqf/article/details/50326533

之前因为ecplise项目保存更新时一直显示等待后台操作完成,以至于一直卡住无法保存,于是强退ecplise并在任务管理器进程中关闭Java.exe。之后重启ecplise,在运行Tomcat时报错,错误内容如下:

Could not publish server configuration for Tomcat v7.0 Server at localhost.

Multiple Contexts have a path of "/xxxx".

技术分享

经查看,问题出在Servers中:

技术分享

server.xml文件中的<context>标签重复,导致Tomcat启动时有重复,将重复的删除即可解决问题。

Multiple Contexts have a path of "/xxxx"问题解决