1. 程式人生 > >Publishing to tomcat v7.0 Server at localhost…' has encountered an error

Publishing to tomcat v7.0 Server at localhost…' has encountered an error

之前因為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啟動時有重複,將重複的刪除即可解決問題。