eclipse Server Tomcat v6.0 Server at localhost 45 秒内无法启动
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6468520/
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
Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds
提问by En-Motion
I have 2 projects in eclipse. One of them runs fine and when added to Tomcat server, server can restart without any problems. However, the other project gets error when added
我在 Eclipse 中有 2 个项目。其中之一运行良好,当添加到 Tomcat 服务器时,服务器可以毫无问题地重新启动。但是,另一个项目在添加时出错
Server Tomcat v6.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.
Server Tomcat v6.0 Server at localhost 无法在 45 秒内启动。如果服务器需要更多时间,请尝试在服务器编辑器中增加超时时间。
I don't believe it's a timeout issue as I've changed time to no avail. Is there other settings/places I should be looking for errors?
我不相信这是超时问题,因为我更改了时间无济于事。是否还有其他设置/地方我应该寻找错误?
This is console output for project that successfully starts vs one that doesn't
这是成功启动的项目的控制台输出与未成功启动的项目的控制台输出
INFO: Initializing Coyote HTTP/1.1 on http-8080
24-Jun-2011 15:17:38 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 472 ms
24-Jun-2011 15:17:38 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
24-Jun-2011 15:17:38 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
24-Jun-2011 15:17:39 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
24-Jun-2011 15:17:39 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
24-Jun-2011 15:17:39 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
24-Jun-2011 15:17:39 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
24-Jun-2011 15:17:39 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47 config=null
24-Jun-2011 15:17:39 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1332 ms
One that fails:
一个失败:
INFO: Initializing Coyote HTTP/1.1 on http-8080
24-Jun-2011 15:18:34 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 425 ms
24-Jun-2011 15:18:34 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
24-Jun-2011 15:18:34 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Has anyone any idea on what could be stopping this from running?
有没有人知道什么可以阻止它运行?
回答by Fortega
Where did you change the time for the timeout?
你在哪里更改超时时间?
In eclipse:
在日食中:
- open your serversview
- doubleclick on the server
- check Timeouts(add a big number for Start)
- 打开您的服务器视图
- 双击服务器
- 检查超时(为Start添加一个大数字)
回答by isilpekel
I got the same error message too. Sometimes it is just a library or a source folder which is out-of-synch. Please be sure that you clean your working directories, clean your projects and republish them. Sometimes it helps if you start the server first, then add the project and restart it. I was able to get this error message after that: java.net.ConnectException: Connection refused. If this is the case, here you can find some suggestions to solve this problem: java.net.ConnectException: Connection refused. Hope that it helps. Addition: A very useful method to find out from where exactly the error comes. http://www.vogella.com/blog/2010/02/16/tomcat-unable-to-start/.
我也收到了同样的错误信息。有时它只是不同步的库或源文件夹。请确保您清理工作目录、清理项目并重新发布它们。有时,如果您先启动服务器,然后添加项目并重新启动它,会有所帮助。之后我能够收到此错误消息:java.net.ConnectException:连接被拒绝。如果是这种情况,您可以在这里找到一些解决此问题的建议:java.net.ConnectException: Connection denied。希望它有帮助。补充:一个非常有用的方法来找出错误的确切来源。http://www.vogella.com/blog/2010/02/16/tomcat-unable-to-start/。
回答by Sathish Kumar k k
May I know when you get this problem? If you get this while debugging, it means that it is waiting for your key press (either F5 or F6) to move to the next execution manually step by step. So you need not change the server's "timeout" property. Hope you get a little idea from this...
我可以知道你什么时候遇到这个问题吗?如果你在调试时得到这个,这意味着它正在等待你的按键(F5 或 F6)手动一步一步地移动到下一个执行。因此您无需更改服务器的“超时”属性。希望你能从这里得到一些想法......
回答by Enda
In my case, it occurred after I put "tcnaive-1.dll" in jre/bin.
就我而言,它发生在我将“tcnaive-1.dll”放入 jre/bin 之后。
Because I tried to remove the warning message when running the other one(tomcat6.0).
因为我在运行另一个(tomcat6.0)时试图删除警告消息。
So, I deleted tcnative-1.dll for tomcat5.5-going-well even if keep warning message on tomcat6.0.
因此,即使在 tomcat6.0 上保留警告消息,我也删除了 tomcat5.5-going-well 的 tcnative-1.dll。