Friday, July 31, 2009

Installing Glassfish server adapter for Eclipse

Installing and running the Sun Glassfish server on a windows machine on any port number is simple out of the box. The installer from Sun allows you to configure the HTTP port number as well as the Admin port number. Yes, the port numbers for the Admin console and HTTP server are different compared to Tomcat or Apache Geronimo or IBM Websphere Community Edition.
Once the server is installed developers will need the Glassfish server adapter for Eclipse, which can be installed using any of the following ways: 
(a) using the "Download Additional Server Adapters" from within Eclipse IDE for which instructions can be found at
    https://glassfishplugins.dev.java.net/eclipse34/
(b) download the jars and install the plugin manually. jars to download can be found at
    https://glassfishplugins.dev.java.net/download/index.html
You will need to download 2 jar files: Plugin jar and the Feature jar, you will need to extract then into the plugins and the features directory respectively. Also, note that these jars have to be extracted in a folder named with the same name as the jar files.
Using one out of the above two steps you should be able to install the Glassfish server adapter in Eclipse with WTP plugins.
However, if for any reasons you do not find the option to add the Glassfish server after following the above steps, you can follow the steps below:
1. Click on Help -> Software Updates
2. Click on the "Available Software" tab and then click on "Add site"
3. Enter the location 
          https://ajax.dev.java.net/eclipse
and click on OK.
4. Once the location is added into the "Available Software" list you can expand it and select the plugins to install.
5. You will need to accept the security certificate to complete the installation.
6. Restart Eclipse and you will find the Glassfish server adapter in the list to add a new server.

0 comments:

Post a Comment