---
title: "eclipse中添加tomcat ServerName 无法输入"
author: "daoshud1"
date: "2015-04-28T13:54:22Z"
tags: []
categories: ["开源软件"]
slug: "eclipse-tomcat-servername"
draft: false
lastmod: "2015-04-28T13:54:22Z"
id: 2206754
url: "https://daoshud1.iteye.com/blog/2206754"
---

Eclipse的开发过程中,无法从以下方式，添加Tomcat服务器。  其中ServerName是被置为灰色的，无法编辑。
![](http://dl2.iteye.com/upload/attachment/0108/1737/31016498-dd85-347e-af0b-6ca932e687ab.png)
如何解决

1.  关闭Eclipse

2.  打开WorkSpace所在的位置。    {workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings     删除以下文件

org.eclipse.wst.server.core.prefs
org.eclipse.jst.server.tomcat.core.prefs

3.  重启 Eclipse，即可。