32

I just installed Java EE plugin in plain eclipse and I am trying to add tomcat server. I opened add new server which showing "Choose the type of server to create" but there is no server list. How can I add tomcat server?

Eclipse: Indigo.

Anoop
  • 23,044
  • 10
  • 62
  • 76
  • 3
    Try this : http://stackoverflow.com/questions/2000078/apache-tomcat-not-showing-in-eclipse-server-runtime-environments – Ken Chan Nov 08 '11 at 07:02

9 Answers9

42

Do as this:

Windows -> Show View -> Servers

Then in the Servers view, right-click and add new. It will show a pop up containing many server vendors. Under Apache select Tomcat v7.0 (Depending upon your downloaded server version). And in the run time configuration point it to the Tomcat folder you have downloaded.

You can try this article. It has the info you want !!

C.OG
  • 6,236
  • 3
  • 20
  • 38
Ghost-Man
  • 2,179
  • 1
  • 21
  • 25
23

If you have the Standard Eclipse installed (instead of the JavaEE version), then you'll need to install the JavaEE web developer tools.

You can drag and drop the Install button from here: https://marketplace.eclipse.org/content/eclipse-enterprise-java-and-web-developer-tools

Or you can go to Help > Install New Software then select the Eclipse site from the dropdown (Helios, Kepler depending upon your revision). Then select the option that shows Java EE. Restart Eclipse and you should see the Server list, such as Apache, Oracle, IBM etc.

Craigo
  • 3,384
  • 30
  • 22
MG Developer
  • 859
  • 11
  • 17
8
  1. Go to Server tab enter image description here

  2. Click on No servers are available. Click this link to create a new server.

  3. Select Tomcat V8.0 from server type list: enter image description here

  4. Provide path of server: enter image description here

  5. Click Finish.

  6. You will see server added: enter image description here

  7. Right click->Start

Now you can run your web applications on server.

Shiv Buyya
  • 3,770
  • 2
  • 30
  • 25
4

If by mistake, you have deleted your Tomcat Server and Eclipse is not showing more options (Next button will be inactive) then in this case follow the bellow steps:

  1. First remove the two files from the following path:

    • Path : workspace/.metadata/.plugins/org.eclipse.runtime/.settings/
    • And that two files are :

      1. org.eclipse.wst.server.core.prefs
      2. org.eclipse.jst/server.tomcat.core.prefs
    • After deleting/removing the above two files from the workspace, Restart the Eclipse IDE.

    • Change to the Server View, Right Click 'New', Window 'Define a New Server' is shown, --> Select the Apache Folder, choose Tomcat-Version

    • Browse to the unzipped 'Apache-Tomcat folder', choose the second level

    • Now you are able to add/configure your new Tomcat Server. (Now you will see the 'Next' button will become active, and you can then follow the normal instructions)

Raceimaztion
  • 9,494
  • 4
  • 26
  • 41
Sachin Parse
  • 1,269
  • 11
  • 12
3

There are different eclipse plugins available to manage Tomcat server and create war file.

For example you can use tomcatPlugin. It permits to start/stop and build the war simply. You can read this tutorial.

eeerahul
  • 1,629
  • 4
  • 27
  • 38
Ogme
  • 31
  • 1
0

This is very simple steps involved as you mentioned you have already installed JAVAEE plugin so the first step for you is go to Windows->Show View->Server in add select the AppacheTOMcat and select the tomcat version you have downloaded and set the path and start the server after that.

Abhijit Chakra
  • 3,201
  • 37
  • 66
0

Most of the time when we download tomcat and extract the file a folder will be created:

C:\Program Files\apache-tomcat-9.0.1-windows-x64

Inside that actual tomcat folder will be there:

C:\Program Files\apache-tomcat-9.0.1-windows-x64\apache-tomcat-9.0.1

so while selecting you need to select inner folder:

C:\Program Files\apache-tomcat-9.0.1-windows-x64\apache-tomcat-9.0.1

instead of the outer.

Stephen Rauch
  • 47,830
  • 31
  • 106
  • 135
0

Right Click on the server tab, go for NEW-> Server. then choose recent version of tomcat server. Click on next, and then give path for your tomcat server.(You can download tomcat server from this link https://tomcat.apache.org/download-80.cgi#8.5.32). Click on finish.

You can start your server now..!!

Abhishek
  • 1
  • 2
  • 2
    Welcome to Stack Overflow. Please note that this post already has an accepted answer. Additionally, your answer does not provide any new suggestions. In the future, consider upvoting an existing answer instead of posting duplicate information. – avojak Jun 27 '18 at 16:46
0

Right on the windows tab select Preferences, go for Server. then choose Runtime Environment. Click on Add, then select Apache...choose version of tomact server from this(version you installed) --> then browse the parent directory of bin of Apache tomact server--->then finsh. Click on Windows--> selcet show view-->select server-> click on link -->choose apache--> and choose your version-->then Next -->then Finish.