File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse 3.4 and Tomcat 6 - startup problem

 
Aldor Bregosson
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2458
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's correct.
 
Aldor Bregosson
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 41
Hibernate Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Samson Mlati
Ranch Hand
Posts: 41
Hibernate Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2458
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 41
Hibernate Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How does one get to the Servers View in Ganymede?
 
Tony Dash
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For me, this option is disabled.
Tomcat 6 on Eclipse 3.4.jpg
Tomcat 6.0 on Eclipse 3.4
[Thumbnail for Tomcat 6 on Eclipse 3.4.jpg]
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Raji Srinivasan
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic