1. 程式人生 > >eclipse中tomcat啟動超時的解決方法

eclipse中tomcat啟動超時的解決方法

問題:在eclipse中啟動tomcat的時候,tomcat不能啟動,報如下錯誤:Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.


解決方法
1:

修改 workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml檔案(路徑為咱們專案在eclipse的工作空間) 

把其中的start-timeout="45" 的時間修改長一點,根據實際載入的專案大小而定,如修改為start-timeout="600"
然後重啟eclipse就可以了。

解決方法1:

雙擊Eclipse中的Servers下的Tomacat服務,在彈出的Overview檢視中找到Timeouts--->Start(in seconds),此處的預設值是45,把此值調大即可。