Java Eclipse 中的 Tomcat 服务器超时

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19755589/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 19:56:19  来源:igfitidea点击:

Tomcat Server Timeout in Eclipse

javaeclipsetimeouttomcat7

提问by CaraPilar

I'm having problems with my Tomcat Server in eclipse. I get the following timeout error:

我在 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.

And this is what I get in the console:

这就是我在控制台中得到的:

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.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK.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

Could someone please help me?

有人可以帮助我吗?

Thanks in advance

提前致谢

回答by Dark Knight

In Eclipse goto

在 Eclipse 中转到

Servers view => double click tomcat => drop down the Timeouts section.

服务器视图 => 双击 tomcat => 下拉超时部分。

Update time as per your requirement.

根据您的要求更新时间。

Also refer to thisURL for in detail steps.

另请参阅URL 以了解详细步骤。

回答by Phoenix

Go to Windows option -> select Preference.

转到Windows 选项 -> 选择 Preference

Than Select General -> Network Connection.

Than select the Active Provider as Manual.

Then restart the tomcat. It will works.

选择 General -> Network Connection

然后选择 Active Provider 作为Manual

然后重启tomcat。它会起作用。

Hope it will help you.

希望它会帮助你。

回答by Rahul Agrawal

For me changing Start Time from 45 sec to 10 min and wait for 5 minutes after starting the server solved the problem.

对我来说,将开始时间从 45 秒更改为 10 分钟并在启动服务器后等待 5 分钟解决了问题。