如何使用 Eclipse Helios 3.6 安装 GlassFish 3 服务器适配器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2538433/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to install the GlassFish 3 server adapter with Eclipse Helios 3.6
提问by Pascal Thivent
Question as stated in the title: how to install the GlassFish Server Adapter on Eclipse Helios 3.6?
标题中提到的问题:如何在 Eclipse Helios 3.6 上安装 GlassFish Server Adapter?
回答by Pascal Thivent
Eclipse Helios 3.6
日食太阳神 3.6
At the time of writing this (07/26/2010), there are in theory two ways to install the GlassFish Server adapter: via the Eclipse Marketplace or via an update site.
在撰写本文时 (07/26/2010),理论上有两种安装 GlassFish Server 适配器的方法:通过 Eclipse Marketplace 或通过更新站点。
Update:As mentioned by Thorbj?rnin a comment, the adapter is now (09/24/2010) available in the Additional server adapters dialogue (the "normal way").
更新:正如Thorbj?rn在评论中提到的,适配器现在 (09/24/2010) 在附加服务器适配器对话框中可用(“正常方式”)。
New Server
新服务器
There are several ways to do this but one ways is to right-clickin the Serverview, select New > Serverthen click the Download additional server adapterslink and select the GlassFish adapter.
有多种方法可以执行此操作,但一种方法是在服务器视图中右键单击,选择新建 > 服务器,然后单击下载其他服务器适配器链接并选择 GlassFish 适配器。
Marketplace
市场
Go to Help > Eclipse Marketplace...and search for "glassfish". Then click on the Installbutton of the GlassFish Java EE Application Server Plugin for Eclipseand follow the steps.
转至Help > Eclipse Marketplace...并搜索"glassfish"。然后单击适用于 Eclipse的GlassFish Java EE 应用服务器插件的安装按钮 并按照步骤操作。
Update site
更新站点
Go to Help → Install New Software, Addthe following temporary1update site: http://download.java.net/glassfish/eclipse/helios. Be sureto uncheck Group items by categoryand you should see the Oracle GlassFish Server Toolsas shown below:
转到帮助 → 安装新软件,添加以下临时1更新站点:http: //download.java.net/glassfish/eclipse/helios。请务必取消选中Group items by category,您应该会看到Oracle GlassFish Server Tools,如下所示:
Click on Nextand follow the steps.
单击下一步并按照步骤操作。
1The GlassFish plugin is being moved to the Oracle Enterprise Pack for Eclipse (OEPE) and will be available at http://download.oracle.com/otn_software/oepe/helios/wtpin the future (see Bug 312912).
1GlassFish 插件正在移至 Oracle Enterprise Pack for Eclipse (OEPE),将来可从http://download.oracle.com/otn_software/oepe/helios/wtp 获得(请参阅错误 312912)。
The problem mentioned above is actually notspecific to the GlassFish plugin and is notplatform specific. The issue is a p2 bug in Eclipse 3.6 when using a shared install(which is the root cause of the problem) as I discovered after reading this other questionon SO and the Bug 322929. The problem is related to a p2 bug which is fixedin Eclipse 3.6 SR1 and after installing Eclipse 3.6 SR1 RC4, things are now indeed working as expected. Yeah!
上面提到的问题实际上不是特定于 GlassFish 插件的,也不是特定于平台的。问题是使用共享安装时 Eclipse 3.6 中的 p2 错误(这是问题的根本原因),正如我在阅读有关 SO 的其他问题和错误 322929后发现的那样。该问题与Eclipse 3.6 SR1 中修复的 p2 错误有关,在安装 Eclipse 3.6 SR1 RC4 后,现在确实按预期工作。是的!
回答by Pascal Thivent
Eclipse Helios 3.6 M6
日食太阳神 3.6 M6
With the Eclipse 3.6 M6 Java EE bundle, if you try to install the GlassFish v3 server adapter via the New Serverdialog and then click on the Download Additional server adapters, Eclipse contacts remote sites but fail at showing any adapter:
对于 Eclipse 3.6 M6 Java EE 包,如果您尝试通过New Server对话框安装 GlassFish v3 服务器适配器,然后单击Download Additional server adapters,Eclipse 会联系远程站点,但无法显示任何适配器:
This issue is actually captured by Bug 305636. Using the Update Site instead of the New Server Wizard allows to workaround the issue:
这个问题实际上是由Bug 305636捕获的。使用更新站点而不是新建服务器向导可以解决此问题:
- Install a new Eclipse Helios M6(get the Eclipse IDE for Java EE Developerspackage).
- Install the latest GlassFish server adapter, today that is 1.0.52:
- Open Help > Install New Software
- Add the GlassFish update site URL: https://ajax.dev.java.net/eclipse
- Install the GlassFish Java EE 5, Java EE 6plugin
- Restart when prompted
- Open the New > Serverwizard and add your GlassFish v3 Java EE 6 server.
- 安装新的Eclipse Helios M6(获取Eclipse IDE for Java EE Developers包)。
- 安装最新的 GlassFish 服务器适配器,今天是 1.0.52:
- 打开帮助 > 安装新软件
- 添加 GlassFish 更新站点 URL:https: //ajax.dev.java.net/eclipse
- 安装GlassFish Java EE 5、Java EE 6插件
- 出现提示时重新启动
- 打开新建 > 服务器向导并添加您的 GlassFish v3 Java EE 6 服务器。
回答by John
I get the following when I try this:
当我尝试这个时,我得到以下信息:
Cannot complete the install because one or more required items could not be found. Software being installed: GlassFish Java EE 5, Java EE 6 1.0.54 (com.sun.enterprise.jst.server.sunappsrv.feature.feature.group 1.0.54) Missing requirement: GlassFish Java EE 5, Java EE 6 1.0.54 (com.sun.enterprise.jst.server.sunappsrv.feature.feature.group 1.0.54) requires 'org.eclipse.platform.feature.group [3.5.0,3.6.0)' but it could not be found
无法完成安装,因为找不到一个或多个必需的项目。正在安装的软件:GlassFish Java EE 5、Java EE 6 1.0.54 (com.sun.enterprise.jst.server.sunappsrv.feature.feature.group 1.0.54) 缺少要求:GlassFish Java EE 5、Java EE 6 1.0。 54 (com.sun.enterprise.jst.server.sunappsrv.feature.feature.group 1.0.54) 需要 'org.eclipse.platform.feature.group [3.5.0,3.6.0)' 但找不到
回答by cool2k
Eclipse Helios already have the correct source to download the glassfish plugin but, the site is not available yet. The site will be available at the end of july according to this https://bugs.eclipse.org/bugs/show_bug.cgi?id=312912
Eclipse Helios 已经有了下载 glassfish 插件的正确来源,但该站点尚不可用。该网站将于 7 月底根据此https://bugs.eclipse.org/bugs/show_bug.cgi?id=312912可用
You can use a development update site to install a rc version of the glassfish plugin for helios witch is:
您可以使用开发更新站点为 helios 女巫安装 glassfish 插件的 rc 版本:
http://download.java.net/glassfish/eclipse/helios
http://download.java.net/glassfish/eclipse/helios
Add thisto your update sites and then uncheck the option "Group items by category" and you will see and be able to install the Glassfish Plugin in Helios
将此添加到您的更新站点,然后取消选中“按类别分组项目”选项,您将看到并能够在 Helios 中安装Glassfish 插件
回答by surajz
The above URL did not work for me (I am using final release of Helios).
上面的 URL 对我不起作用(我使用的是 Helios 的最终版本)。
I had to do
我必须做
help
-> eclipse market place
-> [then select glassfish plugin from the 'search' tab
]
help
-> eclipse market place
-> [ then select glassfish plugin from the 'search' tab
]
回答by Eng.Fouad
On the new Eclipse (JUNO):
在新的 Eclipse (JUNO) 上:
Help --> Install New Software...
帮助 --> 安装新软件...
Then, insert http://download.java.net/glassfish/eclipse/juno
inside the URL field, and press ENTER.
然后,http://download.java.net/glassfish/eclipse/juno
在 URL 字段中插入,然后按ENTER。