无法在Eclipse中添加Tomcat的问题

引言: 在基于Eclipse的开发过程中,出现了无法在Eclipse中添加Tomcat的问题,经过从网上搜索之后,找到了答案.

问题的提出:

    无法从以下方式,添加Tomcat服务器。  其中ServerName是被置为灰色的,无法编辑。

   

如何解决

     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,即可解决所有问题。

原文地址:https://www.cnblogs.com/javacofe/p/6928117.html