DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Eclipse thinks tomcat hasn't started and kills it
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: May 2009
Default Eclipse thinks tomcat hasn't started and kills it - 05-21-2009, 08:57 AM

I'm trying to run Tomcat 5.5 within Eclipse 3.4.2 with WTP but it isn't working. I start tomcat, everything seems fine, it's running, I can access web apps in my Web browser, but Eclipse still says "Starting up tomcat..." and then after a while it says "Couldn't start server in 45 seconds" and the server is dead. So somehow it is checking to see if the server is alive, which it is, but Eclipse can't tell that for some reason, and then (I'm guessing a bit here) it kills the server process. I'm on Ubuntu 8.10.

Anyone have any suggestions? Solutions are great, but even someone has some idea how Eclipse establishes the status of the server (in this case incorrectly) that might be helpful. Thanks!
Reply With Quote
  (#2 (permalink)) Old
Member
 
Posts: 11
Thanks: 0
Thanked 3 Times in 3 Posts
Join Date: Jan 2009
Default 05-21-2009, 06:59 PM

Well, it's entirely possible it's just taking too long to start up. Eclipse has a "time limit", after which it assumes the server isn't going to start. You can increase this timeout in the "Server" tab of Eclipse preferences. From what you describe, this may be a different problem, but it's worth a try.
Reply With Quote
  (#3 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: May 2009
Default well I don't think so - 05-22-2009, 04:40 PM

Thanks for the suggestion, but I don't think that is it, because after a few seconds (but before eclipse tells me tomcat couldn't start up) the console says that tomcat is started and the applications load in my web browser. I've tried increasing the time, that makes it take longer until eclipse kills the server but it still kills it whenever the time is up.
Reply With Quote
  (#4 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Nov 2009
Default same problem - 11-07-2009, 12:07 PM

Hello,
jslate did u find the solution for this problem?
Reply With Quote
  (#5 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: May 2009
Default nope - 11-09-2009, 09:44 AM

Never did, I've been running tomcat outside of eclipse.
Reply With Quote
  (#6 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Nov 2009
Default 11-09-2009, 02:23 PM

A Window$ reinstall helped me out. Just a stray thought, but did u check the Window$ firewall settings?
Reply With Quote
Reply

Tags
eclipse, timeout, tomcat

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat configuration in Eclipse ados Eclipse 1 05-06-2009 12:38 PM
how to use tomcat with eclipse junaidg Eclipse 2 01-25-2009 11:28 PM
deploying to tomcat from within Eclipse slavik112211 Eclipse 0 09-26-2008 10:06 AM
Problem running application under Tomcat in Eclipse Anonymouslemming Eclipse 0 09-09-2008 09:49 AM
Eclipse WST publishing to Tomcat error thewoland Eclipse 0 04-13-2008 02:27 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com