Sunday, February 24, 2013

Part 3: How to download, install and configure GlassFish 3.1.1 Server for Eclipse Indigo 3.7.1


Before starting to develop your web application with JSF2.0, you need to install and configure GlassFish server in order to deploy your web application. Download GlassFish Server fromhttp://glassfish.java.net/downloads/3.1.1-final.html. click on glassfish-3.1.1.zip (EN) as shown in figure below:
Unzip glassfish folder in a suitable location on your hard disk. Now you need to configure GlassFish Server for eclipse. To configure GlassFish Server in eclipse, do the following: In eclipse menubar click File -> New -> Other. In select a wizard dialog box, scroll down and select Server and click next as shown in figure below:
In Define a New Server window click on Download additional server adapters link on the upper right corner of window as in the figure below:
In Install New Extension find and click on Oracle GlassFish Server Tools and click next as in figure below:
Accept the license and click finish. You will be prompted for installation. Click Ok. This will download and install GlassFish Server tools for eclipse. After download is complete you'll be prompted to restart your eclipse. Do not click on Apply Changes Now and restart eclipse immediately. To check if GlassFish Servers are installed. Go to Define a New Server again as described above. You will now see a list of all the available GlassFish Servers. Select GlassFish 3.1.1 and click next as shown in figure below:
In the New Server window select jdk1.7.0_01 JRE list and Browse to glassfish folder in your currently downloaded glassfish3 folder and click next as shown in the figure.
Leave the Admin password blank and click finish as in figure below:
In the lower panel of eclipse you can now see GlassFish 3.1.1 at localhost under the Servers tab. Right click on the server and click on start from context menu. If a security alert from Windows Firewall is prompted, click on Allow access.
The server is started and should look like as in the figure below:
Congratulations! you have configured GlassFish 3.1.1 Server successfully. Now you are ready to start developing your web application. In the next step we'll see how can we create our first application using JSF 2.0 and deploy it in GlassGish Server. So, click Next.

No comments:

Post a Comment