简体   繁体   中英

Tomcat 5.5 won't start in eclipse - Timeout after 5 minutes

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.

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.

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

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, eg 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 .

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM