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

EclipseTomcatEclipse Wtptomcat5.5Eclipse 3.4

Eclipse Problem Overview


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?

Eclipse Solutions


Solution 1 - Eclipse

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.

Solution 2 - Eclipse

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.

Solution 3 - Eclipse

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

Solution 4 - Eclipse

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

Solution 5 - Eclipse

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

Solution 6 - Eclipse

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

Solution 7 - Eclipse

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

Solution 8 - Eclipse

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.

Solution 9 - Eclipse

I started Eclipse as admin, and it worked.

Solution 10 - Eclipse

You can change this by using the VM arguments as well in the launch configuration.

Solution 11 - Eclipse

If the former actions haven't had effect, backup your server configurations, remove the server and reinclude it. It was my case.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionCraig AngusView Question on Stackoverflow
Solution 1 - EclipseJean HominalView Answer on Stackoverflow
Solution 2 - EclipseRamon MichaelView Answer on Stackoverflow
Solution 3 - Eclipseblue-skyView Answer on Stackoverflow
Solution 4 - EclipseioanaView Answer on Stackoverflow
Solution 5 - EclipseDmindsView Answer on Stackoverflow
Solution 6 - EclipseJaykishanView Answer on Stackoverflow
Solution 7 - EclipseSushilView Answer on Stackoverflow
Solution 8 - EclipsesashikantaView Answer on Stackoverflow
Solution 9 - EclipseRookie_GuyView Answer on Stackoverflow
Solution 10 - EclipseJNoviceView Answer on Stackoverflow
Solution 11 - EclipseAlexView Answer on Stackoverflow