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.
Here is the workaround that worked for me:
- Close Eclipse
- In
{workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settingsdelete
the following two files:org.eclipse.wst.server.core.prefsorg.eclipse.jst.server.tomcat.core.prefs
- Restart Eclipse
PS:现在看英语文档直接不费力,啦啦啦。。。。
本文介绍了一种解决在Eclipse中无法输入Tomcat7服务器名称的问题的方法。当尝试添加新的Tomcat7服务器时,如果ServerName字段为空且无法输入,则可以通过删除特定配置文件来解决。适用于Ubuntu Linux和Eclipse for Java EE环境。
1754

被折叠的 条评论
为什么被折叠?



