Configuring the GlassFish Server in Eclipse

We are going to use the GlassFish application server in this chapter. We have already seen how to install GlassFish in the Installing GlassFish Server section of Chapter 1, Introducing JEE and Eclipse.

We will first configure the GlassFish Server in Eclipse JEE:

  1. To configure the GlassFish Server in Eclipse EE, make sure that you are in the Java EE perspective in Eclipse. Right-click on the Servers view and select New | Server. It you do not see the GlassFish Server group in the list of server types, then expand Oracle node and select and install GlassFish Tools:
Figure 7.1: Installing GlassFish Tools
  1. If you have already installed GlassFish Tools, or if GlassFish Server type is available in the list, then expand that and select the GlassFish option:
Figure 7.2: Creating GlassFish Server instance in Eclipse
  1. Click NextEnter the path of the GlassFish Server on your local machine in the Domain path field. Enter admin name and password, if applicable, and click Next:
Figure 7.3: Defining GlassFish Server properties
  1. The next page allows you to deploy the existing Java EE projects in GlassFish. We don't have any projects to add at this point, so just click Finish.
  2. The server is added to the Servers view. Right-click on the server and select Start. If the server is installed and configured properly, then the server status should change to Started.
  3. To open the admin page of the server, right-click on the server and select GlassFish | View Admin Console. The admin page is opened in the built-in Eclipse browser. You can browse to the server home page by opening the http://localhost:8080 URL. 8080 is the default GlassFish port.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.137.7