Publishingtotomcatv7.0Serveratlocalhost…'hasencounteredanerror解决方法
方法/步骤
1、之前因为ecplise项目保存更新时一直显示等待后台操作足薏篇瓜完成,以至于一直卡住无法保存,于是强退ecplise并在任务管理器愉桴狁焕进程中关闭Java.exe。之后重启ecplise,在运行Tomcat时报错,错误内容如下:CouldnotpublishserverconfigurationforTomcatv7.0Serveratlocalhost.MultipleContextshaveapathof“/xxxx”.
2、经查看,问题出在Servers中:
3、server.xml文件中的<context>标签重复,导致Tomcat启动时有重复,将重复的删除即可解决问题。