eclipse No resources that can be added or removed from the server

在全安裝的 eclipse 匯入舊的專案檔案後,雖然新增了 tomcat server, 但是在資源(resource) 對話框,沒有顯示出前的的專案。

解法:

For this you need to update your Project Facets setting.

Project (right click) -> Properties -> Project Facets from left navigation.

If it is not open…click on the link, Check the Dynamic Web Module Check Box and select the respective version (Probably 2.4). Click on Apply Button and then Click on OK.

預設是匯入 Java project, 把畫面中的 Dynamic Web Module 打勾,就可以用在 Tomcat 了。

資料來源:
https://stackoverflow.com/questions/24624782/there-are-no-resources-that-can-be-added-or-removed-from-the-server

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *