1. 程式人生 > >解決eclipse 4.5.1 新增server無法選擇tomacat 8 問題

解決eclipse 4.5.1 新增server無法選擇tomacat 8 問題

1:問題描述:

  當我們在eclipse新建一個web工程,想用tomacat 8 來發布一下web工程,但是此時我們新建一個server ,只能選擇tomacat 7以下。

  網上好多說下載一個外掛Eclipse JST Server Adapters,但是我的下載之後安裝了沒起效果。

  此時見到一個部落格說要刪除工作區間的兩個外掛,試了以下,果然可以。

2解決方法:

  先關閉eclipse, 找到eclipse的工作區間,\.metadata\.plugins\org.eclipse.core.runtime\.settings 然後刪除org.eclipse.wst.server.core.prefs 和org.eclipse.jst.server.tomcat.core.prefs這兩個檔案,然後重啟eclipse,我們此時再試一次,發現可以了。

    如果還是不行,可能是tomacat出問題,首先我們進入tomacat webapps 目錄下,刪除自己在該目錄下加的專案,之後我們進入tomacat 的bin目錄,啟動tomacat 如果tomcat 啟動失敗,那就是你安裝的tomacat有問題,再重新裝一個tomacat8就可以了。

如果你的問題得到解決,請為博主點贊,謝謝!