• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse 3.4 and Tomcat 6 - startup problem

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's correct.
 
Aldor Bregosson
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 41
Hibernate Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How does one get to the Servers View in Ganymede?
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For me, this option is disabled.
Tomcat-6-on-Eclipse-3.4.jpg
[Thumbnail for Tomcat-6-on-Eclipse-3.4.jpg]
Tomcat 6.0 on Eclipse 3.4
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic