GlassFish on Eclipse Ganymede
Ads by DZone
![]() |
Eclipse
Ganymede is the annual release of Eclipse projects; this year
including 23 projects. Screencast
#WS6 showed how GlassFish v2 can be easily registered and
started within an earlier version of Eclipse (3.3 specifically). Eclipse is now 3.4 (as part of Ganymede) and GlassFish v3 is blazing the community with it's modular, embeddable and extensible architecture. |
This blog shows how GlassFish v3 can be easily registered and started in Ganymede. Let's get started!
Download Ganymede and GlassFish v3 TP2 or build the latest workspace. Check Eclipse version by selecting "Eclipse", "About Eclipse platform" menu item. The window shows:

Now follows the screenshots as described in screencast #ws6 but this time for Ganymede instead of Eclipse Europa:
Create a new server ...

... and the window shows the list of default servers ...

... click on "Download additional server adapters" to see GlassFish in the list ...

... select "GlassFish Java EE 5 Server" and click on "Next >" ...

... accept the license and take all other defaults. The IDE needs to be restarted and then again you add a new server ...

... and this time choose "GlassFish V3 SNAPSHOT" ...

and specify the location of downloaded/built GlassFish v3 server. Now create a new project ...

... give it a name ...

... and ensure the "Target Runtime" is "GlassFish V3 SNAPSHOT". And the default project structure is shown below ...

... and now add a JSP ...

... and give it a name ...

... and then select a template ...

... and add some content to it ...

... and then deploy on GlassFish by selecting "Run As", "Run on Server" ...

... and selecting "GlassFish V3 SNAPSHOT" as the server ...

and click on "Finish" to see the result ...

and that's it!
As a next step, you can try installing Metro on TP2 and then deploy your Web service using Eclipse. If you face any problems then send email to users@GF or post a question to GlassFish Forum.
And if you are interested in a tighter integration of GlassFish v3 with an IDE - NetBeans provides that solution as shown in screencast #24.
- arungupta's blog
- Login or register to post comments
- 9235 reads
- Printer-friendly version
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)











Comments
benjaminwolf replied on Wed, 2009/07/15 - 1:28am
Hi
thank you very much for sharing your experience. but I got a problem here:
I followed your guide smoothly until step 4: "select "GlassFish Java EE 5 Server" and click on "Next >"
the downloading proccess failed, the error message is:
Error
Wed Jul 15 13:37:26 CST 2009
No repository found containing: org.eclipse.update.feature,com.sun.enterprise.jst.server.sunappsrv.feature,1.0.29
do you know why this is happen please? thank you
arnaud.versini replied on Mon, 2009/08/03 - 12:34pm
in response to: benjaminwolf