无法从eclipse运行Tomcat 7 [英] Can not run Tomcat 7 from eclipse
问题描述
我正在使用Eclipse EE Helios。
我想将Tomcat 7部署到我创建的项目中。
I am using Eclipse EE Helios.
I wanted to deploy to Tomcat 7 a project I created.
(我已经下载了Tomcat并创建了一个动态项目)
(I have already downloaded Tomcat and created a dynamic project)
我打开了 Server View
,我按 New
在Eclipse中定义一个新的Tomcat实例。
I opened the Server View
in Eclipse and I pressed New
to define a new Tomcat instance within Eclipse.
在新服务器
的对话框中,我选择了 Tomcat v7.0服务器
但是我在窗口顶部看到错误指示
In the dialog for New Server
I selected Tomcat v7.0 Server
but I saw an error indication on the top of the window
无法使用所选类型创建服务器
Cannot create a server using the selected type
如果我按链接下载其他服务器适配器
我会看到几个选项,例如对于Geronimo,GlassFish等但不是
Tomcat 7.
If I press the link Download additional server adapters
I see several options e.g. for Geronimo, GlassFish etc but not for
Tomcat 7.
我在这里做错了什么?
What am I doing wrong here?
推荐答案
创建一个新的Tomcat7 Runtime。在项目中 - >右键单击 - >属性 - >目标运行时 - >新。它将从同一服务器创建第二个版本。这对我有用。
Create a new Tomcat7 Runtime. In project -> right click -> properties -> Targeted runtimes -> new. It will create a second version from the same server. This worked for me.
这篇关于无法从eclipse运行Tomcat 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!