Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse "Server Locations" section disabled and need to change to use Tomcat installation

I have set up a dynamic web project in Eclipse with a Tomcat 5.5 installation.

I want to be to set the server to us the Tomcat installation instead of the workspace metadata location, but when Eclipse displays the "Overview" screen for the server the "Server Locations" section is disabled and therefore I am unable to change it.

The overview screen is displayed when you have the servers view open and you then double click on the server.

Is it possible to enable this part of the "Overview" screen or hack a config file to point at the Tomcat installation?

like image 704
Craig Angus Avatar asked Jun 18 '09 12:06

Craig Angus


People also ask

How do I change Tomcat installation directory in Eclipse?

In the opening window, you should see your tomcat installation. double click on that an a new setting page will open. You will see the Server Locations title, you can set it from that place.

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 change server settings 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).

Do I need to install Tomcat for Eclipse?

Eclipse is a very powerful development environment for Java. Mainly for Web Development project you need Web Server. Apache Tomcat is the best production ready web container. By default when you download Eclipse IDE, it doesn't come with Tomcat install with it.


9 Answers

Ok, sorry for my previous answer, I had never seen that Overview screen before.

Here is how I did it:

  1. Right click on my tomcat server in "Servers" view, select "Properties…"
  2. In the "General" panel, click on the "Switch Location" button
  3. The "Location: [workspace metadata]" bit should have been replaced by something else.
  4. Open (or close and reopen) the Overview screen for the server.
like image 115
Jean Hominal Avatar answered Sep 30 '22 23:09

Jean Hominal


Right click on the server, then Add/Remove, then remove any projects that are in the Configured panel. Then right click on the server and choose "Clean..." from the context menu. Then the Server Locations option will be enabled.

like image 31
Ramon Michael Avatar answered Sep 30 '22 23:09

Ramon Michael


I've just had same issue, this is what worked for me :

Note the message 'Server must be published with no modules present to make changes' on server dialog. So after removing the projects, re-publish your server, the option to set the server location should become re-enabled.

enter image description here

like image 23
blue-sky Avatar answered Sep 30 '22 22:09

blue-sky


it worked for me after deleting and adding the server back.

like image 20
ioana Avatar answered Sep 30 '22 22:09

ioana


Starting server and publishing without any projects helped me to modify the "Server Locations".

like image 32
Dminds Avatar answered Oct 01 '22 00:10

Dminds


If your server is not loaded with heavy configuration, the best solution would be to delete the tomcat and set it again.
It will be much easier then doing try and error for 7-10 times! enter image description here

like image 33
Jaykishan Avatar answered Sep 30 '22 22:09

Jaykishan


Before making any changes in Tomcat Server Location, you need to remove project(s) deployed on server.

To remove project: expand tomcat server in "Servers" view
right click and select remove

like image 42
Sushil Avatar answered Oct 01 '22 00:10

Sushil


Make sure that there is no project Deploy in server. If so ,please right click on server ,select add and remove ,Then remove all project. After this you can double click on server and the option will be enabled for you.

like image 45
sashikanta Avatar answered Oct 01 '22 00:10

sashikanta


I started Eclipse as admin, and it worked.

like image 41
Rookie_Guy Avatar answered Sep 30 '22 23:09

Rookie_Guy