Question a开发者_如何学运维s stated in the title: how to install the GlassFish Server Adapter on Eclipse Helios 3.6?
Eclipse Helios 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.
Update: As mentioned by Thorbjørn in a comment, the adapter is now (09/24/2010) available in the Additional server adapters dialogue (the "normal way").
New Server
There are several ways to do this but one ways is to right-click in the Server view, select New > Server then click the Download additional server adapters link and select the GlassFish adapter.
Marketplace
Go to Help > Eclipse Marketplace... and search for "glassfish". Then click on the Install button of the GlassFish Java EE Application Server Plugin for Eclipse and follow the steps.
Update site
Go to Help → Install New Software, Add the following temporary1 update site: http://download.java.net/glassfish/eclipse/helios. Be sure to uncheck Group items by category and you should see the Oracle GlassFish Server Tools as shown below:
Click on Next and follow the steps.
1 The 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/wtp in the future (see Bug 312912).
The problem mentioned above is actually not specific to the GlassFish plugin and is not platform 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 question on SO and the Bug 322929. The problem is related to a p2 bug which is fixed in Eclipse 3.6 SR1 and after installing Eclipse 3.6 SR1 RC4, things are now indeed working as expected. Yeah!
Eclipse Helios 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 Server dialog and then click on the Download Additional server adapters, Eclipse contacts remote sites but fail at showing any adapter:
This issue is actually captured by Bug 305636. Using the Update Site instead of the New Server Wizard allows to workaround the issue:
- Install a new Eclipse Helios M6 (get the Eclipse IDE for Java EE Developers package).
- 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 6 plugin
- Restart when prompted
- Open the New > Server wizard and add your GlassFish v3 Java EE 6 server.
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
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
You can use a development update site to install a rc version of the glassfish plugin for helios witch is:
http://download.java.net/glassfish/eclipse/helios
Add this to 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
The above URL did not work for me (I am using final release of Helios).
I had to do
help
-> eclipse market place
-> [then select glassfish plugin from the 'search' tab
]
On the new Eclipse (JUNO):
Help --> Install New Software...
Then, insert http://download.java.net/glassfish/eclipse/juno
inside the URL field, and press ENTER.
精彩评论