Monday 4 February 2013

how to add glassfish server in eclipse indigo


   

This tutorial assumes that you have downloaded oracle glassfish 3.1.2 from the oracle website and eclipse 3.x for javaEE IDE from the eclipse site. if not follow the links below to download the files.

Eclipse : http://www.eclipse.org/downloads/ 
Glassfish : http://www.oracle.com/technetwork/middleware/glassfish/downloads/index.html

Right Click in the Server Window at the bottom of the Screen and Click New Server.

  

In the New Server Runtime Environment dialog. Expand the Glassfish Folder. If the Glassfish folder does not contain the Glassfish 3.1.2 Server,  Click the Download additional Server adapters link.

   

In the Install New Extension Dialog, wait for all the server adaptors to be downloaded. then Select Oracle Glassfish Server Tools. Click Next and Complete the Install.



Now Back to the New Server Runtime Environment Dialog. Select Glassfish 3.1.2 and click Next

  

In the next window, Select the JDK to run Glassfish. Select the Glassfish directory.
  The glassfish server might resides inside the root glassfish folder. In my case its C:\glassfish\glassfish.
 Then click on Install Server Button. After Installed servler in your Application Server Directory click on finish button.

 

You cannot run glassfish with a JRE, you must configure a JDK in the eclipse environment.After Installed servler in your Application Server Directory

Now your glassfish installation is complete. You can start the server from the servers window by right clicking on the server and selecting Start.



In some cases the console window will use two different startup logs. It is designed to auto switch, however in case it doesn’t happen. you can switch manually to the specific Log, by selecting the Display Selected Console button on the top right of the consoles window.

  

Once your server is started up, Right click, Select Glassfish > View Admin console The Console opens up in the internal browser by default.






  


If you want it to open up in your default system browser, Select Window > Web Browser > Default System Browser. and voila, eclipse will redirect all browser displays to  your system browser.

  


If any doubts on this post please post the comments.

No comments:

Post a Comment