eclipse Tomcat 服务器未在 45 秒内启动
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15498724/
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
Tomcat Server not starting with in 45 seconds
提问by user2186332
Server Tomcat v7.0 Server at localhost was unable to start within 101 seconds. If the server requires more time, try increasing the timeout in the server editor.
Server Tomcat v7.0 Server at localhost 无法在 101 秒内启动。如果服务器需要更多时间,请尝试在服务器编辑器中增加超时时间。
This is my error. I searched a lot but I can't able to find a solution for this please help me someone I changed time from 45 secs to 101 secs still not solved, I removed eclipse and tomcat and I re-installed again but same problem occurs, plz give some solution.
这是我的错误。我搜索了很多,但找不到解决方案,请帮助我,我将时间从 45 秒更改为 101 秒仍未解决,我删除了 eclipse 和 tomcat,然后重新安装,但出现了同样的问题,请帮助我给出一些解决方案。
回答by mstzn
Try remove all breakpoints.Also you can increase start up time.
尝试删除所有断点。此外,您还可以增加启动时间。
Open the Servers view -> double click tomcat -> drop down the Timeouts section
打开服务器视图 -> 双击 tomcat -> 下拉超时部分
回答by Phoenix
I got the solution for your requirement.
我得到了满足您要求的解决方案。
I'm also getting the same error in my eclipse Luna.
Go to Windows option -> select preference.
Than Select General -> Network Connection.
Than select the Active Provider as Manual.
Then restart the tomcat and run. It will work.
我的 eclipse Luna 也遇到了同样的错误。
转到Windows 选项 -> 选择首选项。
比选择常规-> 网络连接。
然后选择 Active Provider 作为Manual。
然后重启tomcat并运行。它会起作用。
Hope it will help you.
希望它会帮助你。
回答by Trilochan
Open the Servers view -> double click tomcat -> drop down the Timeouts section you can increase the startup time for each particular server. like 45 to 450
打开服务器视图 -> 双击 tomcat -> 下拉超时部分,您可以增加每个特定服务器的启动时间。像 45 到 450
回答by Henrique Cardoso
I know it's a bit late, but I've tried everything above and nothing worked. The real problem was that I'm using hibernate, so it was trying to connect to mysql but was not able, thats why it showed time out.
我知道这有点晚了,但我已经尝试了上面的所有方法,但没有任何效果。真正的问题是我正在使用 hibernate,所以它试图连接到 mysql 但无法连接,这就是它显示超时的原因。
Just to let u guys know, I'm using RDS(Amazon), so just to make a test I changed to my local mysql and it worked perfectly.
只是为了让你们知道,我正在使用 RDS(Amazon),所以只是为了进行测试,我更改了我的本地 mysql 并且它运行良好。
Hope that this answer helps somebody.
希望这个答案对某人有所帮助。
Thanks.
谢谢。
回答by Guen_hamza
Disabling my antivirus does the trick for me ...
禁用我的防病毒软件对我有用...
回答by Marcus Hoelscher
I also had the issue of the Eclipse Tomcat Server timing out and tried every suggestion including:
我也遇到了 Eclipse Tomcat 服务器超时的问题,并尝试了所有建议,包括:
- increasing timeout seconds
- deleting various .metadata files in workspace directory
- deleting the server instance in Eclipse along with the Run Config
- 增加超时秒数
- 删除工作区目录中的各种 .metadata 文件
- 删除 Eclipse 中的服务器实例以及运行配置
Nothing worked until I read a comment on a related issue and realized that I had added a breakpoint in an interceptor class after a big code change and had forgotten to toggle it off. I removed it and all other breakpoints and Tomcat started right up as it usually did.
直到我阅读有关相关问题的评论并意识到我在大的代码更改后在拦截器类中添加了一个断点并且忘记将其关闭之前,什么都没有起作用。我删除了它和所有其他断点,Tomcat 像往常一样立即启动。
回答by Aditya Singh
In my case I was using spring+hibernate and forgot to run my MYSQL server due to which hibernate was not getting loaded and thus was throwing error
在我的情况下,我使用 spring+hibernate 并且忘记运行我的 MYSQL 服务器,因为没有加载休眠状态,因此抛出错误
回答by rodolk
Folks, I had this same problem and tried raising the timeout, deleting the server and creating again and did not work. I was running Eclipse Kepler in Linux. The solution proposed by @Phoenix is what worked for me:
伙计们,我遇到了同样的问题,并尝试提高超时时间,删除服务器并再次创建,但没有奏效。我在 Linux 中运行 Eclipse Kepler。@Phoenix 提出的解决方案对我有用:
Window -> Preferences -> General -> Network Connections
Set Active Providers in manual and then configure or not the proxy. I had this option in "Native".
手动设置 Active Providers,然后配置或不配置代理。我在“本机”中有这个选项。
Then I realized I had the variable http_proxy set. It was set in the ~/.bashrc file. This environment variable is the culprit of many problems.
然后我意识到我设置了变量 http_proxy 。它是在 ~/.bashrc 文件中设置的。这个环境变量是许多问题的罪魁祸首。
Once I set http_proxy to empty
一旦我将 http_proxy 设置为空
export http_proxy=
to check it:
检查它:
echo $http_proxy
I was able to leave option "Active Provider" in "Native" and solve the timeout problem. This is useful because Eclipse adopts the native configuration, in case you change it often.
我能够在“本机”中保留选项“Active Provider”并解决超时问题。这很有用,因为 Eclipse 采用本机配置,以防您经常更改它。
In my case, where I had configured http_proxy in ~./bashrc, I had to close Eclipse and even log out and log in again.
就我而言,我在 ~./bashrc 中配置了 http_proxy,我不得不关闭 Eclipse,甚至注销并重新登录。
回答by Raj
I had tried increasing the Server Start up time for tomcat server, removed server and created new server, removed server and changed run-time environment configurations. Those thing didn't work for me. At last, i found deployment descriptor(url pattern of servlet-mapping) is the one that making the trouble.
我曾尝试增加 tomcat 服务器的服务器启动时间,删除服务器并创建新服务器,删除服务器并更改运行时环境配置。那些东西对我不起作用。最后,我发现部署描述符(servlet 映射的 url 模式)是造成麻烦的一个。