You are on page 1of 7

 

Apache Tomcat Not Showing in Eclipse Server Runtime Environments [duplicate]


Asked
11 years, 8 months ago Active
5 months ago Viewed
292k times

This question already has answers here:

175 How do I import the javax.servlet / jakarta.servlet API in my Eclipse project?


(15 answers)

Closed 5 months ago.

I have tomcat 5.5 installed, running and verifiable at http://localhost:8080/. The Tomcat menu option appears in the Eclipse menu bar
38
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

java eclipse tomcat

Share Improve this question Follow edited Jan 4 '10 at 18:35 asked Jan 4 '10 at 15:05
Powerlord Dumars
82.9k 16 120 164 1,751 2 11 3

1 After trying all these things, I turned out I was not supplying the full binary path for tomcat i.e. /usr/local/Cellar/tomcat7/7.0.57/libexec/ in my case.
Might help someone.
– Usman
Jan 13 '15 at 1:28

Join Stack Overflow to learn, share knowledge, and build your career.

8 Answers Sign up with email


Sign up with Google
Sign up with GitHub
Sign up with Facebook
Active Oldest Votes
¿No encuentras la respuesta? Pregunta en Stack Overflow en español.

In my case I needed to install "JST Server Adapters". I am running Eclipse 3.6 Helios RCP Edition.

340 Here are the steps I followed:

1. Help -> Install New Software

2. Choose "Helios - http://download.eclipse.org/releases/helios" site or kepler - http://download.ecliplse.org/releases/kepler


3. Expand "Web, XML, and Java EE Development"
4. Check JST Server Adapters (version 3.2.2)

After that I could define new Server Runtime Environments.

EDIT: With Eclipse 3.7 Indigo Classic, Eclipse Kepler and Luna, the steps are the same (with appropriate update site) but you need both
JST Server Adapters and JST Server Adapters Extentions to get the Server Runtime Environment options.

Share Improve this answer Follow edited Feb 22 '19 at 10:06 answered Feb 8 '11 at 17:59
Community ♦ Andriy Drozdyuk
1 1 51.5k 44 151 259

Worked for me too, except I obviously chose Galileo from the dropdown because that's the version I'm using.
– Joey Marianer
Jun 15 '11 at 18:23

28 Also works with Eclipse 4.2 M6. Don't forget to install the "JST Server Adapters Extenstion"
– koppor
Mar 31 '12 at 21:12

Worked for Eclipse Helios in Mac OS as well. Thanks :O)


– Cacho Santa
Feb 2 '13 at 1:32

Works great! Stressing @koppor's comment - Don't forget to install the "JST Server Adapters Extenstion"
– Ido Cohn
Aug 14 '13 at 8:07

2 For version 2019-09, in drop down select: 2019-09 - download.eclipse.org/releases/2019-09 and install both: JST Server Adapters and JST Server
Adapters extensions
– Olivier Royo
Nov 14 '19 at 8:07

Join Stack Overflow to learn, share knowledge, and build your career.
You need to go to Help>Eclipse Marketplace . Then type server in the search box it will display Eclipse JST Server Adapters
(Apache Tomcat,...) .Select that one and install it .Then go back to Window>Preferences>Server>Runtime Environnement, click add
Sign up with email
Sign up with Google
Sign up with GitHub
Sign up with Facebook
32 choose Apache tomcat version then add the installation directory .
Share Improve this answer Follow edited Feb 20 '16 at 20:53 answered Feb 20 '16 at 20:47
Java Main
1,275 12 17

2 If you have Tomcat version > 8, and cannot find it in the list, update your eclipse to Oxygen and it will show up. If you want to use Neon, install the
plugin from bugs.eclipse.org/bugs/attachment.cgi?id=262418 and restart Eclipse. If you are using Mars or below, these solutions will not work.
– Vikas
Nov 13 '17 at 21:00

2 Using Oxygen and Tomcat 9, I tried this, but the list only added up to Tomcat v8.0. I then tried the first solution in this thread installing JST Server
Adapters and JST Server Adapters Extentions through the Help -> Install New Software option. It told me they were already installed and would be
updated. After the update, now the Tomcat versions include 8.5 & 9.0, so it looks like that method is the better option.
– Inukshuk
Feb 5 '18 at 19:02

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

27 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.

Share Improve this answer Follow answered Oct 14 '10 at 4:06


Hoa
3,102 1 22 33

1 Well that doesn't work as I get "Eclipse Java EE Developer Tools Missing requirement: EJB component Plug-in requires 'bundle
org.eclipse.emf.codegen but it could not be found and it goes on and on...
– Andriy Drozdyuk
Feb 8 '11 at 17:44

1. Window > Preferences > Server > Runtime Environments (as you said)
2. Add
16 Join Stack Overflow to learn, share knowledge, and build your career.
3. Apache > Apache Tomcat 5.5
Sign up with email
Sign up with Google
Sign up with GitHub
Sign up with Facebook
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
Java EE developers).

Share Improve this answer Follow edited Apr 21 '13 at 9:03 answered Jan 4 '10 at 15:25
Arjan Tijms Bozho
36.8k 12 105 134 560k 137 1032
1125

4 ..assuming that OP is using "Eclipse for Java EE developers" and not "Eclipse for Java developers" sausaged with some extra (and incomplete) plugins.
– BalusC
Jan 4 '10 at 17:54

right.. I thought the servers plugin is available only in the EE version.


– Bozho
Jan 4 '10 at 18:09

It worked for me as I already had all the plugins asked in other answers. Thanks @Bozho
– Kush
Oct 17 '12 at 11:21

It'll be helpful if there's a list of dependency relations of Eclipse function and plugins.
– smwikipedia
Dec 15 '14 at 10:00

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.
8
Go get "Eclipse for Java EE developers". Note the extra "EE". This includes among others the Web Tools Platform with among others a
lot of server plugins with among others the one for Apache Tomcat 5.x. It's also logically; JSP/Servlet is part of the Java EE API.

Share Improve this answer Follow edited Feb 8 '11 at 17:47 answered Jan 4 '10 at 17:56
BalusC
1.0m 356 3504
3475

4 Sorry but I don't think getting EE eclipse is a solution. Eclipse was made from the beginning to be "pluggable" - so why should I download a different
version of eclipse?
– Andriy Drozdyuk
Feb 8 '11 at 17:40

5 It has more than only the WTP. I don't


Join stopOverflow
Stack you from installing
to learn,the WTP knowledge,
share separately viaand
software
buildupdate
your tool (and then fiddle afterwards with lot of
career.
missing parts of which isn't always entirely clear how/where to get them). I just wanted to make clear that you have to get the EE version from the
beginning on when your intent is to develop with J2EE/JavaEE.
– BalusC
Feb 8 '11 at 17:43

Sign up with email


Sign up with Google
Sign up with GitHub
Sign up with Facebook
I think installing the whole EE eclipse solution, just because you need a running Apache instance, is a bit of an overkill. I think the culture of eclipse
should be install only what you need - not install more than you need.
– Andriy Drozdyuk
Feb 8 '11 at 18:00

@drozzy: I noticed in your other comment on Hoa's answer that you got trouble yourself with getting your Eclipse non-EE right. Did you notice the
answer of user443326 as well? And the comments on Bozho's answer? I have no problems with downvotes, I'm always eligible to fix/improve the
answer accordingly. I only fail to understand the downvote in this particular case when it's actually Eclipse's own fault, not mine.
– BalusC
Feb 8 '11 at
18:02

I am just saying that the answers like "Uninstall that and install another version of eclipse" do not solve the problem, they simply side-step it. Sorry for
the down-vote - I've a tendency to do so without thinking. I removed it.
– Andriy Drozdyuk
Feb 8 '11 at 21:29

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,
1 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.

Share Improve this answer Follow edited Jul 20 '10 at 7:48 answered Jul 19 '10 at 9:27
Tommy
177 1 2 17

Scenario 1:
You had Eclipse showing server and now after removing the particular version you want to configure at Eclipse a new local
server instance. But you can not move further.
1
This happens due to reason Eclipse still looks for configured version of Tomcat directory, which directory is no longer there.

There is no need till LUNA to make fresh installation!

All we need is to REPLACE the new server run time environment into eclipse after removing old one, which is non-existent. Eclipse will

Join Stack Overflow to learn, share knowledge, and build your career.

Sign up with email


Sign up with Google
Sign up with GitHub
Sign up with Facebook
Share Improve this answer Follow edited Apr 5 '16 at 9:00 answered Apr 5 '16 at 8:51
vimal krishna
2,492 25 21

Join Stack Overflow to learn, share knowledge, and build your career.

Help -> checkSign


for up
updates upon Eclipse
with email update

Sign up withsolved
Googlethe issue
Sign up with GitHub
Sign up with Facebook
0 Share Improve this answer Follow answered Feb 16 at 11:09
Raj
41 9

Highly active question. Earn 10 reputation (not counting the association bonus) in order to answer this question. The reputation requirement helps protect
this question from spam and non-answer activity.

Join Stack Overflow to learn, share knowledge, and build your career.

Sign up with email


Sign up with Google
Sign up with GitHub
Sign up with Facebook

You might also like