The Source for Java Technology Collaboration
User: Password:
Register | Login help    

Search

Online Books:
java.net on MarkMail:


GlassFish on Eclipse Ganymede

Posted by arungupta on June 27, 2008 at 6:13 AM PDT
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.

Technorati: eclipse ganymede glassfish v3
Related Topics >> Eclipse      
Comments
Comments are listed in date ascending order (oldest first)

Hmm, I am getting "org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP" error with GlassFish V3 TP2 with Windows XP. I have get the same error with either JDK 1.5.09 or JDK 1.6.0. Is there something I need to configure for the compiler, have tried adding tools.jar to the classpath.

macgibbon, There should be no need to configure any additional plugins. Although I tried on Windows Vista & Mac OS.

YEAH :) finally, all that problems I got trying to run my J2EE projects on Eclipse was caused by the bugged plugin... now my web.xml 2.5 is running fine...