Eclipse添加Tomcat 7空白服务器名称 [英] Eclipse add Tomcat 7 blank server name

查看:118
本文介绍了Eclipse添加Tomcat 7空白服务器名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Ubuntu中的Eclipse中添加Tomcat 7。当我在Eclipse中单击添加新服务器并选择Tomcat v7.0服务器时,服务器名称字段为空,我不能在该文本框中输入任何内容,如下所示:





我以前做过的是从Eclipse中删除了一个Tomcat 7服务器,并且我正在尝试重新安装Tomcat 7.但是它不允许我在该文本框中输入任何内容,因此我无法进入下一步按钮。我的环境是用于JavaEE的Ubuntu Linux和Eclipse。

解决方案

这是Eclipse中的一个错误。我有完全相同的问题,也在Ubuntu上使用Eclipse Java EE Juno。



这是为我工作的解决方法:


  1. 关闭Eclipse

  2. {workspace-directory} /。metadata / .plugins / org.eclipse.core中。运行时/ .settings 删除以下两个文件:

    • org.eclipse.wst.server.core.prefs

    • org.eclipse.jst.server.tomcat.core.prefs


  3. 重新启动Eclipse

资料来源:eclipse.org论坛


I was trying to add Tomcat 7 in my Eclipse in Ubuntu. When I click "Add new server" in Eclipse and select "Tomcat v7.0 Server", the field "Server Name" is blank and I cannot type in anything in that textbox as shown below:

What I did before is I deleted a Tomcat 7 server from Eclipse and I was trying to reinstall Tomcat 7. But it doesn't allow me to type anything in that textbox and I cannot proceed to the "Next" button. My environment is Ubuntu Linux and Eclipse for JavaEE.

解决方案

It is a bug in Eclipse. I had exactly the same problem, also on Ubuntu with Eclipse Java EE Juno.

Here is the workaround that worked for me:

  1. Close Eclipse
  2. In {workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings delete the following two files:
    • org.eclipse.wst.server.core.prefs
    • org.eclipse.jst.server.tomcat.core.prefs
  3. Restart Eclipse

Source: eclipse.org Forum

这篇关于Eclipse添加Tomcat 7空白服务器名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆