Publishing to…' has encountered an error

2025-09-28 14:35:27

1、之前因为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”.

Publishing to…' has encountered an error

2、经查看,问题出在Servers中:

Publishing to…' has encountered an error

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

Publishing to…' has encountered an error

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢