Eclipse “Server Locations” section disabled and ne

2019-01-04 18:15发布

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?

11条回答
不美不萌又怎样
2楼-- · 2019-01-04 18:19

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

查看更多
男人必须洒脱
3楼-- · 2019-01-04 18:21

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.

查看更多
Evening l夕情丶
4楼-- · 2019-01-04 18:21

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

查看更多
混吃等死
5楼-- · 2019-01-04 18:21

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

查看更多
做自己的国王
6楼-- · 2019-01-04 18:24

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.

查看更多
Luminary・发光体
7楼-- · 2019-01-04 18:25

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

查看更多
登录 后发表回答