Tomcat 5.5 无法在 Eclipse 中启动 - 5 分钟后超时

发布于 2024-11-09 19:45:24 字数 165 浏览 1 评论 0原文

我的 tomcat 5.5 自行启动时启动正常。当我尝试在 Eclipse 中启动它时,它超时了。它只是位于“Starting Tomcat v5.5...at localhost”。我什至把超时改为5分钟,但它仍然无法启动。我已经多次尝试在 eclipse 中重新安装我的 tomcat,但这根本没有帮助。请帮忙。

My tomcat 5.5 start fine when I start it by itself. When I try to start it in eclipse, it times out. It just sits at "Starting Tomcat v5.5...at localhost". I even changed the timeout to 5 minutes and it still won't start. I've tried reinstalling my tomcat in eclipse multiple times and that hasn't helped at all. Please help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

泼猴你往哪里跑 2024-11-16 19:45:24

您可以在 Eclipse 的服务器配置屏幕中指定超时,您可以通过双击 Servers 视图中的服务器条目来获取该超时。你可以尝试将其增加到 100 秒之类的。但我认为这并不能解决真正的问题。

在从 Eclipse 内部启动 Tomcat 之前,您需要确保外部启动的 Tomcat 已完全关闭。要验证这一点,请在网络浏览器中转到 Tomcat 应侦听的地址,例如 http://localhost:8080。如果您收到浏览器默认连接超时错误,那么没关系。这样您应该能够从 Eclipse 内部启动它。

如果无效,您可以尝试通过右键单击服务器条目并选择“清理”来清理 Tomcat 工作目录。如果仍然无效,请尝试使用 eclipse.exe -clean 重新启动 Eclipse。

You can specify the timeout in the server configuration screen in Eclipse which you can get by doubleclicking the server entry in the Servers view. You could try to increase it to 100 seconds or something. But I don't think that this will fix the real problem.

You need to ensure that Tomcat which is started externally is completely shutdown before you start it from inside Eclipse. To verify this, go in your webbrowser to the address where Tomcat should be listening on, e.g. http://localhost:8080. If you get a browser default connection timeout error, then it's fine. This way you should be able to start it from inside Eclipse.

If in vain, you could try to clean the Tomcat working directory by rightclicking the server entry and choosing Clean. If still in vain, try restarting Eclipse as eclipse.exe -clean.

往昔成烟 2024-11-16 19:45:24

经过几天的混乱,我终于发现这是我添加到服务器的一个特定项目。它以某种方式导致服务器永远无法启动。当我将 jdk 从工作台默认值切换到我下载的版本 6 时,它工作得很好。我仍然不确定该项目中是否有一个 jar 导致了问题。

After days of messing with this, I finally figured out that it was a specific project that I had added to the server. It somehow caused the server to never start. When I switched the jdk from the workbench default, to version 6 which I downloaded, it worked fine. I'm still not exactly sure if there is a jar in that project that is causing the problem.

云巢 2024-11-16 19:45:24

我知道这是一篇旧帖子,但当我更新到 eclipse indigo 时遇到了同样的问题,当我将 JDK 版本更改为 1.6.0_36 时问题得到解决。

I know it's an old post but I had the same problem when I updated to eclipse indigo and the problem was fixed when I changed JDK version to 1.6.0_36.

枕头说它不想醒 2024-11-16 19:45:24

就我而言(开普勒),jdks 之间的切换不起作用,但一次只放置一个 web 应用程序(调试时)就可以了。

In my case (kepler) switching between jdks didn't work, but putting just one webapp at a time (when debugging) did the trick.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文