views:

886

answers:

6

I have tomcat 5.5 installed, running and verifiable at http://localhost:8080/. The Tomcat menu option appears in the Eclipse menu bar and I can start and stop Tomcat from there. In Eclipse, it does not show as a Server Runtime Environment in Window - Preferences - Server - Runtime Environments, nor does it appear in the list of environments that can be added when I click the "Add" button. All I see is the J2EE Runtime Library.

Edit:
Running on Windows XP.

Eclipse version is 3.5.1

+1  A: 
  1. Window > Preferences > Server > Runtime Environments (as you said)
  2. Add
  3. Apache > Apache Tomcat 5.5

That has worked for the past 3 versions of Eclipse at least. If there is not such an option on your eclipse, get a fresh installation (for JEE developers).

Bozho
..assuming that OP is using "Eclipse for Java EE developers" and not "Eclipse for Java developers" sausaged with some extra (and incomplete) plugins.
BalusC
right.. I thought the servers plugin is available only in the EE version.
Bozho
A: 

Running on Windows XP.

Eclipse version is 3.5.1

Dumars
Please don't post comments/updates/questions as answers. Use `add comment` to add a comment. Use `edit` below your question to update a question. Once done that, please use `delete` below this message to delete the unnecessary answer.
BalusC
@BalusC: He doesn't have enough reputation to add comments. I've taken the liberty to edit it in to the question, though.
R. Bemrose
+1  A: 

nor does it appear in the list of environments that can be added when I click the "Add" button. All I see is the J2EE Runtime Library.

Go get "Eclipse for Java EE developers". Note the extra "EE". This includes under each the Web Tools Platform with under each a lot of server plugins with under each the one for Apache Tomcat 5.x. It's also logically; JSP/Servlet is part of the Java EE API.

BalusC
A: 

You may get more success if you do a "search" for the runtime env from the preferences screen instead of hitting "add" - see this demo on youtube. http://www.youtube.com/watch?v=EOkN5IPoJVs&playnext_from=TL&videos=rVnITzSU2Z8 - When you hit search, you are prompted to point to the tomcat directory and then it SHOULD add it as a server runtime environment. Unfortunately for me, that is not the case (I get "no new server runtime environments were found") But you might have more success.

Tommy
A: 

I agree with BalusC, it didnt matter how many plugins etc I put into the standard version, I only got it working as soon as I installed Eclipse for Java EE developers.

A: 

I had the same problem and I solved it with the following steps

  1. Help > Install New Software...
  2. Select "Eclipse Web Tools Platform Repository (http://download.eclipse.org/webtools/updates)" from the "Work with" drop-down.
  3. Select "Web Tools Platform (WTP)" and "Project Provided Components".

Complete all the installation steps and restart Eclipse. You'll see a bunch of servers when you try to add a server runtime environment.

Hoa