Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds. If the server requires

Server Tomcat v8.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.web

問題描述:數據庫

OS:Windows 7 x64tomcat

Eclipse:app

Eclipse Java EE IDE for Web Developers.
Version: Luna Service Release 2 (4.4.2)
Build id: 20150219-0600webapp

 

Java Web項目啓動調試時,提示此錯誤,以下圖:ui

 

這種狀況存在兩種可能,一種是項目配置有錯誤(多是數據庫、Redis之類的配置錯誤,也多是相關的服務沒有啓動,防火牆之類的);調試

另外一種是項目啓動的確實比較慢,須要更長的時間,解決方法以下:server

打開Server視圖,雙擊Tomcat v8.0 Server,選擇Timeoutsblog

 

 

將啓動時間限制改大:ip

 

按Ctrl+S保存,而後再啓動調試。

 

若是將時間改的很大了,仍是不能啓動成功,有如下兩種狀況:

一、項目配置有問題,上面說過了;

二、tomcat 的 webapps 目錄下還有其它的項目,致使服務啓動失敗了,嘗試刪除其它項目,再啓動調試看看。

相關文章
相關標籤/搜索