在eclipse中使用Tomcat8.0時出現Could not publish server ...錯誤

來源:互聯網
上載者:User

標籤:tomcat   eclipse   could not publish server   

在eclipse中使用Tomcat8.0時出現了

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

Multiple Contexts have a path of ""

錯誤.

網上有兩種解決方案,如下

如果是使用的eclipse tomcat 外掛程式,需要在你的工作空間 找到如下檔案:
${WoskSpace}/.metadata\.plugins\org.eclipse.wst.server.cor\e\tmp0\conf\server.xml檔案。
 
如果是Tomcat單獨伺服器就需要找Tomcat的安裝目錄:
${Tomcat_home}\apache-tomcat-6.0.37\conf\server.xml

但是我試過後都沒作用,也許因為這是8.0版本的原因吧.


下面是我的解決方案:


    在建立Tomcat服務時,eclipse會自動產生一個Servers的項目. 在這個項目中,找到你部署項目的服務檔案夾. 在這個檔案夾下有一個"server.xml"檔案,開啟這個檔案,刪除裡面對應項目的Context節點即可.

本文出自 “異性戀恐懼症” 部落格,請務必保留此出處http://twoxzi.blog.51cto.com/8613587/1626234

在eclipse中使用Tomcat8.0時出現Could not publish server ...錯誤

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.