way 1:
- Right click on my tomcat server in “Servers” view, select “Properties…”
- In the “General” panel, click on the “Switch Location” button
- The “Location: [workspace metadata]” bit should have been replaced by something else.
- Open (or close and reopen) the Overview screen for the server.
way 2:
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.
结合使用way1和way2, 方法1不能用时, 使用方法2; 方法2不能用时用方法1;