尝试将 Tomcat v7 添加到 eclipse,但在“定义新服务器”中找不到它窗户
我正在尝试在 Eclipse 中创建一个动态 Web 项目,但是我的 Apache Tomcat 版本是 v7,并且当我尝试定义新服务器时可用的 tomcat 服务器列表是从 v3.2 到 v6.0,没有什么更高的了。
我尝试单击“下载其他服务器适配器”,但在那里找不到任何更新版本的 tomcat。我的机器上有一个 Tomcat 服务器,但我想将它与 Eclipse 链接起来以使开发更容易。
我也尝试过进入 Window ->首选项->服务器选项卡 -> Installed Runtimes 选项卡并单击搜索,然后选择我的 tomcat 安装文件夹。它不会添加任何内容,也不会给出任何错误。
关于如何做到这一点有什么想法吗?我认为版本差异可能是我无法让我的eclipse项目直接编译到tomcat服务器并且我不知道如何添加它的原因。
I'm trying to create a dynamic web project in eclipse, but my version of Apache Tomcat is v7 and the list of abvailable tomcat servers when I try to define the new server are from v3.2 to v6.0, there is nothing higher.
I tried to click "Download additional server adapters" but could not find any updated versions of tomcat there. I have a tomcat server working on my machine, but I wanted to link it with Eclipse to make development easier.
I've also tried going to Window -> Preferences -> Server Tab -> Installed Runtimes tab and clicking search, then selecting my tomcat installation folder. It doesn't add anything and doesn't give any error.
Any ideas of how to do this? I think the version difference may be the reason I can't get my eclipse projects to compile directly to the tomcat server and I can't figure out how to add it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您需要使用等于或高于 3.6 (Helios) 的 Eclipse IDE for Java EE Developers 版本。其他版本和早期版本没有适用于 Tomcat 7 的适配器。请确保您也运行最新版本的 Web 工具。也尝试让 Eclipse 在服务器->运行时环境下搜索它。如果您运行的是足够新的 EE 版本,它可能会为您检测到。
You need to be using a version of Eclipse IDE for Java EE Developers equal to or greater than 3.6 (Helios). Other builds and earlier versions do not have the adapter for Tomcat 7. Make sure you are running the latest version of the web tools as well. Also try letting eclipse search for it under server->runtime environment. It may detect it for you, if you are running a new enough version of EE.
您必须使用 Eclipse 3.7 又名 Indigo。
另外,请确保下载 EE 版本,因为您将拥有构建 Web 服务所需的一切。
You have to use Eclipse 3.7 aka Indigo.
Also, make sure you download the EE version as you'll have everything you need to build web services.
@Manjush
谢谢你的指点。在 Windows 首选项中进行编辑是个好主意。对我来说,它不允许添加,因为我给出了错误的服务器路径。我正在使用 Eclipse 开普勒。
@Manjush
Thanks for the pointer. Editing in Windows preferences is a good thought. For me, it dint allow to add because I had given a wrong path of the server. I am using Eclipse Kepler.
转到Windows->首选项->服务器->安装的运行时并添加(点
到)系统上已安装的 Tomcat 7。
Go to Windows->Preferences->Servers->Installed Runtimes and add (point
to) an installed Tomcat 7 installation on your system.