Eclipse中的Tomcat:它在启动过程中运行但超时 [英] Tomcat in Eclipse: It runs but time out during startup anyway

查看:272
本文介绍了Eclipse中的Tomcat:它在启动过程中运行但超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Tomcat 7在Eclipse(Helios)中运行一个Java Web应用程序。服务器启动成功(持续时间指示),但Eclipse的进度条仍然表明Tomcat正在启动。最终超时到了,并且抛出一个错误。



我相信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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆