Skip to main content

GlassFish v3 TP2 on Eclipse

Posted by arungupta on May 16, 2008 at 9:28 AM PDT



href="http://blogs.sun.com/arungupta/entry/screencast_ws6_eclipse_europa_and">Screencast
#WS6 showed how to configure href="http://glassfish.org">GlassFish in href="http://eclipse.org">Eclipse IDE. With href="http://blogs.sun.com/arungupta/entry/screencast_24_getting_started_with">GlassFish
v3 TP2, the plug-in is also updated. Here are snapshots
showing how easy it is to install GlassFish in Eclipse. The snapshots
follow the steps outlined in href="http://blogs.sun.com/arungupta/entry/screencast_ws6_eclipse_europa_and">screencast
#ws6 anyway.



Download Eclipse
IDE for Java EE Developers
and install. Check the version ...



src="http://blogs.sun.com/arungupta/resource/images/eclipse-v3tp2-about.png">



... add a new server (in order to install GlassFish adapter) ...



src="http://blogs.sun.com/arungupta/resource/images/eclipse-v3tp2-new-server.png">



... click on "Download additional server adapters" ...



src="http://blogs.sun.com/arungupta/resource/images/eclipse-v3tp2-additional-adapters.png">



... select "GlassFish Java EE 5 Server" adapter ...



src="http://blogs.sun.com/arungupta/resource/images/eclipse-v3tp2-glassfish-adapter.png">



... click on "Next >" and follow the steps ...



src="http://blogs.sun.com/arungupta/resource/images/eclipse-v3tp2-confirmation.png">



... the IDE restarts after adapter installation is complete. While the
IDE is restarting, download href="https://glassfish.dev.java.net/downloads/v3">GlassFish
v3 TP2 and unzip (single zip for multiple platforms). After
the IDE is restarted, add a new server (following the steps above) and
filter on "glassfish" ...



src="http://blogs.sun.com/arungupta/resource/images/eclipse-v3tp2-glassfish-new-server.png">



... click on "Next >" and select the location of GlassFish v3
TP2 installation ...



src="http://blogs.sun.com/arungupta/resource/images/eclipse-v3tp2-glassfish-adding-server.png">



... click on "Finish" to see the following window ...



src="http://blogs.sun.com/arungupta/resource/images/eclipse-v3tp2-glassfish-server-added.png">



... click on sideways white triangle in green circle to start GlassFish
and see the output console as ...



src="http://blogs.sun.com/arungupta/resource/images/eclipse-v3tp2-glassfish-started.png">



See how GlassFish starts up in less than 1 sec - and it is modular
(OSGi
compliant), embedable (run in-VM) and extensible (non-Java apps).



And as Ludo href="http://weblogs.java.net/blog/ludo/archive/2008/04/communityone_ja.html">reported,
it also runs in embedded mode.



Technorati: href="http://technorati.com/tag/glassfish">glassfish
eclipse
v3

Related Topics >>

Comments

I just tried this and for the download part, they all show up, but for the actual creation of the new server, when it is changed to something other than localhost, most of the choices (including glassfish) disappear. I suspect this is because we don't (yet) support remote servers. See enhancement request https://glassfishplugins.dev.java.net/issues/show_bug.cgi?id=22. Thanks for your comments, and if you have further comments, please post them to users@glassfishplugins.dev.java.net.

so the glassfish server adapter only shows up if the host name is: localhost, is that intensional? if i type anthing else in, another host name or an ip address and click "Download ..", the other adpaters show up, but not glassfish.

ok, thanks - i'm switching right away.

so any idea why i see Prelude & SNAPSHOT, instead of tp2? right now, for each error message, i'm going through and doing symbolic links from the name it is looking for to the tp2.jar - i have my fingers crossed.

In general, we try to track only 2 versions for V3, so the current ones are either nightly snapshots or promoted builds. See http://download.java.net/glassfish/v3/nightly/ for the nightlies. TP2 is way too old (may 2008), and was a tech preview. You should stop using it now. Ludo

Yes, 1.0.7 is the latest version released recently.

the plugin and feature version that was downloaded was 1.0.7.

after "download additional server adapters" - i still see: Prelude & SNAPSHOT, no tp2 - so i can't select an application server directory because it can't get a match for correct version of glassfish-10.0.jar