This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse 3.4 and Tomcat 6 - startup problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse 3.4 and Tomcat 6 - startup problem" Watch "Eclipse 3.4 and Tomcat 6 - startup problem" New topic
Author

Eclipse 3.4 and Tomcat 6 - startup problem

Aldor Bregosson
Greenhorn

Joined: Jan 04, 2008
Posts: 3
Hi,

I don't know if I should post this in a Tomcat forum, or in an Eclipse forum, so I'll try it here:

I'm using Eclipse 3.4 and Tomcat 6.0.18 for web app development and local tests. In the olden days, I always used the Sysdeo Tomcat plugin to start, stop and restart Tomcat from inside Eclipse, that was very convenient and worked fine.

Now I've been told that I won't need the Sysdeo plugin any more, Tomcat can be added as a server in Eclipse and started from there - just as BEA WebLogic or Glassfish can be started by adding them as a "target server".

But, trying this, I failed: Eclipse's console says that everything has started all right and the server is started, but the server can't be reached over



nor any other port that may be mentioned.

So I reverted to using the Sysdeo Tomcat plugin and I could start Tomcat from there, and showed me the well known Tomcat entry page.

So what did I miss out on adding Tomcat as a "Target server" to Eclipse ? Comparing the console output of the two variants showed, that the "Eclipse only" variant failed to start the ContextListener as well as the SessionListener:

This was the version that worked (using the Sysdeo plugin):


And that's the version that did not work (starting the server instance from Eclipse itself):


The two bold lines are the ones where the two variants differ. So, what am I missing in the "Eclipse-only" solution ?

A helpful hint is highly appreciated
Cheers
Aldor
Lasanka Weerawansa
Greenhorn

Joined: Jun 30, 2005
Posts: 2
Not sure whether you have already found a solution for this, it seems like the eclipse by defualt use "workspace metadata" path as the server location and if this is switched to "Tomcat Installation" it solves the problem you mentioned above.

Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
That's correct.
Aldor Bregosson
Greenhorn

Joined: Jan 04, 2008
Posts: 3
Thanks Lasanka, that was a great little hint.

I had continued to use the Sysdeo plugin, but today I tried your solution, and it works fine.

Thanks again,
bye
Aldor.
Samson Mlati
Ranch Hand

Joined: Feb 23, 2009
Posts: 41

Bauke Scholtz wrote:That's correct.


Hi, I have the same problem with eclipse ganymed and tomcat 6, eclipse starts an embedded tomcat. Where do you get this server locations window?


Best,
Mlati
Samson Mlati
Ranch Hand

Joined: Feb 23, 2009
Posts: 41

Lasanka Weerawansa wrote:Not sure whether you have already found a solution for this, it seems like the eclipse by defualt use "workspace metadata" path as the server location and if this is switched to "Tomcat Installation" it solves the problem you mentioned above.



I meant to ask you. Where do you get this window? I'm on eclipse ganymed and it won't start my installed tomcat too. Thanks
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
James Mur wrote:
Bauke Scholtz wrote:That's correct.


Hi, I have the same problem with eclipse ganymed and tomcat 6, eclipse starts an embedded tomcat. Where do you get this server locations window?
Doubleclick the Tomcat server entry in the Servers view.
Samson Mlati
Ranch Hand

Joined: Feb 23, 2009
Posts: 41

Bauke Scholtz wrote:
James Mur wrote:
Bauke Scholtz wrote:That's correct.


Hi, I have the same problem with eclipse ganymed and tomcat 6, eclipse starts an embedded tomcat. Where do you get this server locations window?
Doubleclick the Tomcat server entry in the Servers view.


Why thank you. Didn't think of that
Joseph Arceneaux
Greenhorn

Joined: May 01, 2009
Posts: 5
How does one get to the Servers View in Ganymede?
Tony Dash
Greenhorn

Joined: Aug 04, 2009
Posts: 1
For me, this option is disabled.



[Thumbnail for Tomcat 6 on Eclipse 3.4.jpg]

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5811
    
    7

Tony, please to not hijack other's topics by asking unrelated questions (was there a question in your post?). Instead, create a new topic and ask the question there.


JBoss In Action
Raji Srinivasan
Greenhorn

Joined: Dec 23, 2009
Posts: 1
Tony,
You may have found out how to enable the radio buttons for server locations.
But this is what I did..
Start the server and then double click the tomcat server entry in server view.
 
Don't get me started about those stupid light bulbs.
 
subject: Eclipse 3.4 and Tomcat 6 - startup problem
 
Similar Threads
Eclipse 3.2 and Tomcat 5.5 - startup problem
Tomcat installation problem
java.sql.SQLException: Io exception: Got minus one from a read call
org.apache.catalina.connector.Connector pause SEVERE: Protocol handler pause failed
Eclipse europa winter + JbossTools + Tomcat 6.0