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 ?
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.
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
Joined: Oct 08, 2006
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.