2013-11-03 88 views
3

我在eclipse中的Tomcat服務器出現問題。我得到以下超時錯誤:Eclipse中的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. 

這是我在控制檯中:

Nov 03, 2013 11:59:57 AM org.apache.catalina.core.AprLifecycleListener init 
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;. 
Nov 03, 2013 11:59:58 AM org.apache.tomcat.util.digester.SetPropertiesRule begin 
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Gift Registry Application' did not find a matching property. 
Nov 03, 2013 11:59:59 AM org.apache.coyote.AbstractProtocol init 
INFO: Initializing ProtocolHandler ["http-bio-8080"] 
Nov 03, 2013 11:59:59 AM org.apache.coyote.AbstractProtocol init 
INFO: Initializing ProtocolHandler ["ajp-bio-8009"] 
Nov 03, 2013 11:59:59 AM org.apache.catalina.startup.Catalina load 
INFO: Initialization processed in 3088 ms 
Nov 03, 2013 11:59:59 AM org.apache.catalina.core.StandardService startInternal 
INFO: Starting service Catalina 
Nov 03, 2013 11:59:59 AM org.apache.catalina.core.StandardEngine startInternal 
INFO: Starting Servlet Engine: Apache Tomcat/7.0.47 
Nov 03, 2013 12:00:03 PM org.apache.coyote.AbstractProtocol start 
INFO: Starting ProtocolHandler ["http-bio-8080"] 
Nov 03, 2013 12:00:03 PM org.apache.coyote.AbstractProtocol start 
INFO: Starting ProtocolHandler ["ajp-bio-8009"] 
Nov 03, 2013 12:00:03 PM org.apache.catalina.startup.Catalina start 
INFO: Server startup in 3796 ms 

有人能幫助我嗎?

預先感謝

+1

您是否嘗試增加服務器編輯器中的超時時間? –

+0

我得到了同樣的問題。我還注意到了兩件事:1)當我點擊「顯示後臺操作進度視圖」 - 按鈕,而tomcat啓動時,它似乎卡在「準備啓動代表...」。 2)我可以通過我的瀏覽器中的localhost:8080訪問Web應用程序,直到發生超時。 –

回答

12

在Eclipse轉到

服務器視圖=>雙擊的Tomcat =>下拉超時部分。

更新時間根據您的要求。

另請參閱this URL詳細步驟。

+0

在Eclipse Luna中,它不起作用。有沒有其他解決方案。是否需要切換到任何其他版本的月蝕,如** Helios/Kepler **。 – Phoenix

+0

嘗試Eclipse Mars/Neon。 – Phoenix

4

轉至Windows選項 - >選擇首選項

選擇一般 - >網絡連接

比選擇活動提供者爲手冊

然後重新啓動tomcat。它會起作用。

希望它能幫助你。

1

對於我改變開始時間從45秒到10分鐘,並等待5分鐘後啓動服務器解決了問題。

相關問題