How to install the GlassFish 3 server adapter with Eclipse Helios 3.6

62,713

Solution 1

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!

Solution 2

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:

alt text

This issue is actually captured by Bug 305636. Using the Update Site instead of the New Server Wizard allows to workaround the issue:

  1. Install a new Eclipse Helios M6 (get the Eclipse IDE for Java EE Developers package).
  2. Install the latest GlassFish server adapter, today that is 1.0.52:
    1. Open Help > Install New Software
    2. Add the GlassFish update site URL: https://ajax.dev.java.net/eclipse
    3. Install the GlassFish Java EE 5, Java EE 6 plugin
    4. Restart when prompted
  3. Open the New > Server wizard and add your GlassFish v3 Java EE 6 server.

Solution 3

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

Solution 4

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

Solution 5

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.

Share:
62,713
Devanshu Mevada
Author by

Devanshu Mevada

I'm a Software Engineer with 10 years of experience. I'm specialized in Java and Agile (XP, Scrum and Lean) and work as Agile Architect/Coach/Facilitator. I like GNU/Linux, Ubuntu, open source philosophy, knowledge sharing, finding innovative solutions, continuous improvement, building better software, Toyota,... I tweet here, post links here, blog here (well, actually, I don't blog). Some of my answers: Agile - What is your most useful technique for finding (or preventing) bugs? Java - Why Spring Framework ? Java EE - What to learn for making Java web applications in Java EE 6? Java EE - JEE6 vs. Spring 3 stack Java EE - Choosing a Java Web Framework now? Java EE - What is “Groovy on Grails” and what kind of applications are built using it? Java EE - Stateless and Stateful Enterprise Java Beans Maven - Questions to Determine Maven Knowledge Maven - Maven 3 - Worth it? Maven - Maven parent pom vs modules pom Maven - What is the maven reactor? Maven - Why maven ? What are the benefits? Persistence - A concise, clear list of what is new in JPA2? Persistence - Hibernate and question nobody asks Persistence - Java - JDBC alternatives Persistence - Weaknesses of Hibernate

Updated on July 09, 2020

Comments

  • Devanshu Mevada
    Devanshu Mevada almost 4 years

    Question as stated in the title: how to install the GlassFish Server Adapter on Eclipse Helios 3.6?

  • VonC
    VonC about 14 years
    @Pascal: thank you, seems much easier that way. +1 all around.
  • Devanshu Mevada
    Devanshu Mevada almost 14 years
    I've updated the question to be more generic and cover all versions of Eclipse 3.6. Now that the final release of Eclipse Helios 3.6 is there, I'm unmarking this question as accepted.
  • VonC
    VonC almost 14 years
    Good summary. +1. I had done the information update on the other question before reading your own update. I have voted to close that other question as duplicate, hoping for a merge.
  • Devanshu Mevada
    Devanshu Mevada almost 14 years
    @VonC: Thanks. I have actually requested a merge, trying to centralize things (inspired by your awesome eclipse.ini answers).
  • Yusuf K.
    Yusuf K. about 13 years
    Add oracle glassfish server tools from download.oracle.com/otn_software/oepe/helios/wtp And restart it. you will be able to add glassfish as server to eclipse.
  • Amit
    Amit about 13 years
    Could you please have a look at stackoverflow.com/questions/5526861/…