如何安装适用于 Eclipse 3.5 的 Jetty WTP 服务器适配器?
目前,我正在尝试安装适用于 Eclipse 3.5 的 Jetty WTP 服务器适配器,但出现以下错误:
An error occurred while collecting items to be installed session context was:(profile=epp.package.jee,phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.mortbay.jetty.serveradaptor,1.0.4
No repository found containing: org.eclipse.update.feature,org.mortbay.jetty.serveradaptor,1.0.4
要安装,我尝试添加新的服务器运行时,单击“安装其他服务器适配器”,然后按照单击最终加载的通用 Jetty 服务器适配器。 到目前为止,我在所有 RC 中都遇到过此错误,但目前活动的 RC 是 RC4。
Currently I am attempting to install the Jetty WTP Server Adapter for Eclipse 3.5 and get the following errors:
An error occurred while collecting items to be installed session context was:(profile=epp.package.jee,phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.mortbay.jetty.serveradaptor,1.0.4
No repository found containing: org.eclipse.update.feature,org.mortbay.jetty.serveradaptor,1.0.4
To install, I attempt to add a new server runtime, click 'Install Additional Server Adapters' and follow the wizard I get when I click on the Generic Jetty Server Adapter that eventually loads. I've had this error in all the RCs up to this point, but currently the active RC is RC4.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我还发现添加 Jetty(和 Glassfish)服务器适配器的“下载其他服务器适配器”路径失败,与原始海报具有相同的依赖性问题。
下载 .jar 并将其复制到我的 Eclipse 安装的“插件”目录中idd 不起作用。Jetty 服务器适配器仍然无法识别已安装的插件。
我必须转到“帮助 -> 安装新软件 -> 添加...”并输入 http://www.webtide.com/eclipse 站点手动。然后我可以看到 Jetty 适配器,并安装成功。它似乎已经安装到eclipse/plugins/ 而不是将 .jar 文件复制到 eclipse/plugins 中。
这可能是 7 月 2 日的海报想要说的,但
我不知道为什么,但是“下载”。 “额外的服务器适配器”对话框在 Eclipse 3.5 中对我不起作用,安装总是因依赖性问题而失败。
我还发现我必须手动安装所有 WST 适配器项目才能解决失败的依赖性,例如:
“Web、XML和 Java EE 开发 -> JST 服务器适配器”、“WST 服务器适配器”
以及“数据库开发”项目。 我不确定需要哪些。当我安装了所有看起来可能的东西后,从更新站点安装 Glassfish 和 Jetty 服务器适配器时,所有依赖问题都得到了解决。
I also found the 'Download additional server adapters" route to adding the Jetty (and Glassfish) server adapters failed, with the same dependency issues as the Original Poster.
Downloading the .jar and copying it into the 'plugins' dir of my Eclipse install idd not work. The Jetty server adapter was still not a recognised installed plugin.
I had to go to "Help->Install New Software->Add..." and enter the http://www.webtide.com/eclipse site manually. Then I could see the Jetty adapter, and install it successfully. It seems to have installed into the eclipse/plugins/ rather than copied a .jar file into eclipse/plugins.
This may be what the poster on 2 Jul was trying to say, but it wasn't very clear.
I don't know why, but the "download additional server adapters" dialog hasn't worked for me once with Eclipse 3.5, the install always fails with dependency issues.
I also found I had to manually install all the WST Adapter items to get around failed dependencies, for example:
"Web, XML and Java EE Development->JST Server Adapters", "WST Server Adapters"
and also the "Database Development" items. I'm not sure which were required.. when I'd installed everything that looked likely, all my dependency issues were resolved when installing the Glassfish and Jetty server adapters from their update sites.
有一个新的(官方!)Jetty WTP 插件支持 Jetty 7.x 和 8.x:http://wiki.eclipse.org/Jetty_WTP_Plugin
There's a new (official!) Jetty WTP Plugin to support Jetty 7.x and 8.x: http://wiki.eclipse.org/Jetty_WTP_Plugin
在安装 Jetty 服务器适配器之前安装 JST 服务器 UI 可以解决此问题。 这是一个当前错误(请参阅 https://bugs.eclipse.org/bugs/ show_bug.cgi?id=321663)。
这样您就可以将其安装为插件或在服务器视图中。
The problem could be resolved installing the JST Server UI before the Jetty Server Adapter. It is a current bug (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=321663).
That way you can install it either as a plugin or in the servers view.
我认为您需要 org.mortbay.jetty.serveradaptor.1.0.4.jar 来安装 jetty 适配器,从 http: //www.webtide.com/eclipse ,放入eclipse的插件中。
希望回答能够对您有所帮助。
I think you need org.mortbay.jetty.serveradaptor.1.0.4.jar to install jetty adapter, download from http://www.webtide.com/eclipse , put it in plugins of eclipse.
Hope the answer could help you.