Eclipse中的Tomcat:它在启动过程中运行但超时 [英] Tomcat in Eclipse: It runs but time out during startup anyway
问题描述
我相信Tomcat是好的,因为我使用了它使用的命令,并在shell中手动运行它。 Tomcat运行正常,我可以按预期的URL打到网络应用程序。我也可以在启动之后和发生超时之前点击它。
我重新安装了Eclipse,我用干净的方式运行,我删除/重新创建了服务器。没有什么工作任何人都有任何线索?
我找到了答案(刚刚发布在这里,讽刺的是,似乎是如何找到答案给自己的问题。)
答案是端口被其他进程使用。我应该知道,但升级几个不同的包将这样做。但是出现以下症状:
- Tomcat成功启动。能够在超时之前触发应用程序。
- Eclipse看起来无法确定服务器是启动还是停止。
HTTP目前正在运行默认值为8080.不幸的是,我的数据存储正在8080听(我猜,我不是特别是确定它与端口做什么,除了它被分配给jmx)。我猜测Eclipse在8080时无法检测到Tomcat。
I'm running a java web app in Eclipse (Helios) using Tomcat 7. The server startups up successfully (duration indicated) however Eclipse's progress bar still spins saying that Tomcat is starting up. Eventually the timeout is reached and an error is thrown.
I believe Tomcat is fine as I've taken the command that it uses and ran it manually in the shell. Tomcat runs fine and I'm able to hit the web app at the expected URL. I can also hit it after it's started up and before the timeout occurs.
I've reinstalled Eclipse, I ran it with clean, I deleted/recreated the server. Nothing has worked. Anybody have any clues?
I've found the answer (just after posting here which, ironically, seems to be how to find answer's to one's own question.)
The answer was that the port was being used by another process. I should've known but upgraded several different packages will do this. But onto the symptoms:
- Tomcat starts successfully. Able to hit the application before timeout.
- Eclipse looks like it's unable to determine whether the server has started or stopped.
HTTP is currently running under the default of 8080. Unfortunately, my data store was listening at 8080 (my guess as I'm not particularly sure what it does with the port except that it's allocated for jmx). I'm guessing that Eclipse is unable to detect Tomcat at 8080.
这篇关于Eclipse中的Tomcat:它在启动过程中运行但超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!