Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse - Add Server - Next Button is disabled when I select a specific Tomcat (e.g tomcat8)

Tags:

eclipse

tomcat

I open Servers view, right click and go to new->server menu.

When I select Tomcat 6 or Tomcat 7 the next button works well however when I select Tomcat 8 the next button is greyed out.

How can I add a tomcat 8 in this case?

like image 917
Ismail Yavuz Avatar asked Jul 28 '15 14:07

Ismail Yavuz


People also ask

How can I add Tomcat server to eclipse?

Installing server runtime Start the Eclipse WTP workbench. Open Window -> Preferences -> Server -> Installed Runtimes to create a Tomcat installed runtime. Click on Add... to open the New Server Runtime dialog, then select your runtime under Apache (Apache Tomcat v5. 0 in this example):

How do I change Tomcat settings in Eclipse?

For configuring the tomcat server in eclipse IDE, click on servers tab at the bottom side of the IDE -> right click on blank area -> New -> Servers -> choose tomcat then its version -> next -> click on Browse button -> select the apache tomcat root folder previous to bin -> next -> addAll -> Finish.

How do I add a server to an existing project in Eclipse?

Select File > New > Other…, then open the 'Server' folder and select 'Server' (Figure 4). Click 'Next'. In the next dialogue box (Figure 6) you are required to specify the path to the installed server and to select a Java Runtime Environment (JRE).

Where is Tomcat preference in Eclipse?

To configure Tomcat as a new Runtime Environment, select the "Preferences" menu item from Eclipse's "Windows" menu (if you are using a Mac, you can find "Preferences" under the main Eclipse menu). You will be presented with large tree of preferences. Expand the "Server" preferences, and select "Runtime Environments".


2 Answers

I had this issue too, and it was caused by unsufficient file-access rights to the Tomcat server installation directory.

Make sure you have read-access to all files within the Tomcat installation directory you configured in Eclipse (this can be an issue for example if you use the standard tomcat installed in Ubuntu, if you do not belong to the tomcat8 group).

like image 34
Laurent Grégoire Avatar answered Oct 16 '22 21:10

Laurent Grégoire


There are a few resource on the web about this problem but no answer on SO.

If you were never add a tomcat8 to eclipse there would be no problem just like tomcat7 or tomcat6. But there is a setting about tomcat8 and that is wrong. In that menu there is no option to reconfigure settings.

Just go to Window->Preferences->Server->Runtime Environments and Remove or Edit the old, wrong settings. Then you will be able to add tomcat8 too!

Ref: http://www.codejava.net/servers/tomcat/how-to-add-tomcat-server-in-eclipse-ide

like image 198
Ismail Yavuz Avatar answered Oct 16 '22 20:10

Ismail Yavuz