Skip to main content

TOTD #66: GlassFish Eclipse Plugin 1.0.16 - Install v3 Prelude from the IDE

Posted by arungupta on January 17, 2009 at 5:53 AM PST



GlassFish
Plugins team
href="https://glassfishplugins.dev.java.net/servlets/ReadMsg?list=users&msgNo=164">released
ver 1.0.16 of href="https://glassfishplugins.dev.java.net/eclipse34/">Eclipse
plugin for GlassFish. The team has maintained pretty good
cadence in terms of adding features and fixing bugs in the plugin ( href="https://ajax.dev.java.net/eclipse/releasenotes.html">16
releases in approx as many months). However this particular
version has an exciting feature. It allows  href="https://glassfish.dev.java.net/downloads/v3-prelude.html">GlassFish
v3 Prelude to be
installed from within the IDE itself.



If you have not installed GlassFish plugin in your Eclipse earlier then
href="http://blogs.sun.com/arungupta/entry/screencast_28_simple_web_application">screencast
#28 shows how to get started. However the screencast requires
you to pre-install GlassFish outside the IDE. Instead, as explained in
this blog, you can skip
to here
and install the Application Server from within the
IDE.



If you have a previous installation of GlassFish plugin, then it needs
to be updated using the steps described below. And finally install the
Application Server from wtihin the IDE.



Lets get started!



In Eclipse, go to "Help" menu item, "Software Updates ..." and it shows
the complete list of plugins installed along with their versions ...



href="http://blogs.sun.com/arungupta/resource/images/gp16-before-upgrade.png"> src="http://blogs.sun.com/arungupta/resource/images/gp16-before-upgrade.png"
alt="" style="border: 2px solid ; width: 700px; height: 432px;">



GlassFish plugin version is 1.0.14 in this case. Click on "Available
Software" tab to show all the available updates as shown below:



href="http://blogs.sun.com/arungupta/resource/images/gp16-software-addons.png"> style="border: 2px solid ; width: 700px; height: 349px;" alt=""
src="http://blogs.sun.com/arungupta/resource/images/gp16-software-addons.png">



The GlassFish plugin update site is automatically added to the list of
managed sites once you install the plugin, but it is not automatically
checked as active. The href="https://glassfishplugins.dev.java.net/issues/show_bug.cgi?id=45">issue
#45 provide more details but in the mean while check the
website explicitly by clicking on "Manage Sites ..." and selecting
"https://ajax.dev.java.net/eclipse" as shown below ...



href="http://blogs.sun.com/arungupta/resource/images/gp16-managed-sites.png"> style="border: 2px solid ; width: 700px; height: 434px;" alt=""
src="http://blogs.sun.com/arungupta/resource/images/gp16-managed-sites.png">



Click on "OK" and the list of "Available Software" is now updated to
include GlassFish server. Notice, the latest version (1.0.16 in this
case) is shown as well.



href="http://blogs.sun.com/arungupta/resource/images/gp16-available-software.png"> style="border: 2px solid ; width: 700px; height: 398px;" alt=""
src="http://blogs.sun.com/arungupta/resource/images/gp16-available-software.png">



Select the plugin to be installed ...



href="http://blogs.sun.com/arungupta/resource/images/gp16-available-software-checked.png"> style="border: 2px solid ; width: 700px; height: 351px;" alt=""
src="http://blogs.sun.com/arungupta/resource/images/gp16-available-software-checked.png">



Click on "Install ..."



href="http://blogs.sun.com/arungupta/resource/images/gp16-available-software-install.png"> style="border: 2px solid ; width: 700px; height: 488px;" alt=""
src="http://blogs.sun.com/arungupta/resource/images/gp16-available-software-install.png">



Click on "Next >" and then "Finish". Now your Eclipse is updated
with the latest GlassFish plugin.



Lets add a new Server instance. In the "Servers" tab, right-click and
select "New", "Server" ...



alt=""
src="http://blogs.sun.com/arungupta/resource/images/gp16-add-new-server.png">



Select "GlassFish v3 Prelude" after expanding the "GlassFish" tree ...



alt=""
src="http://blogs.sun.com/arungupta/resource/images/gp16-define-new-server.png">



Name the server if you like or take default and click on "Next".



Notice "Install Server"
button, this is the new functionality added in
version 1.0.16 of the plugin. Specify a directory name and click on
"Install Server". This will automatically download the GlassFish v3
Prelude server and install in the specified directory.



alt=""
src="http://blogs.sun.com/arungupta/resource/images/gp16-app-server-directory.png">



Of course, you need to accept the License ...



alt=""
src="http://blogs.sun.com/arungupta/resource/images/gp16-install-server-licence.png">



Click on "Finish" and GlassFish is downloaded and installed for you
(finished in few seconds for me :) and shows the following window:



alt=""
src="http://blogs.sun.com/arungupta/resource/images/gp16-post-install.png">



Clicking on "Next >" walks you through the standard GlassFish
configuration options:



href="http://blogs.sun.com/arungupta/resource/images/gp16-post-install-add-server.png"> style="border: 0px solid ; width: 700px; height: 232px;" alt=""
src="http://blogs.sun.com/arungupta/resource/images/gp16-post-install-add-server.png">



More details on how to leverage the powerful GlassFish server are
available in the href="https://glassfishplugins.dev.java.net/eclipse34/index.html">documentation.
The href="http://blogs.sun.com/arungupta/entry/screencast_28_simple_web_application">screencast
#28 shows some of the GlassFish/Eclipse integration features
in an easy to use manner.



Please ask any questions or send any feedback to href="mailto:users@glassfishplugins.dev.java.net">users@glassfishplugins.dev.java.net.



Please leave suggestions on other TOTD (Tip Of The Day) that
you'd like to see.
A complete archive of all tips is available href="http://blogs.sun.com/arungupta/tags/totd">here.




Technorati: totd
glassfish
eclipse
v3

Related Topics >>

Comments

it is ok