今天在使用eclipse時,打開tomcat報錯,錯誤提示:
Could not load the Tomcat server configuration at \Servers\Tomcat v6.0 Server at localhost-config. The Servers project is closed.
因爲我也用也用myeclipse部署過項目,想着是myeclipse中的項目沒有打開,然後我把myeclipse中的項目移除了,但是還是報同樣的錯誤,後面在eclipse中移除了tomcat,然後重新添加,還是無效,包同樣的錯誤。
後來網上找了相關答案,先移除tomcat,然後在eclipse的workspace下,刪除.settings整個文件夾,(具體路徑:D:\eclipse-workspace\.metadata\.plugins\org.eclipse.core.runtime)重啓eclipse。
重啓eclispe之後重新添加tomcat,然而之前的web工程會提示找不到一些相關的jar包,
解決方法:
1、右擊項目名->properties
2、選擇下面的Targeted Runtimes
3、選擇右邊你所打開的Tomcat 服務器->apply->ok