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:
- To configure the GlassFish Server in Eclipse EE, make sure that you are in the
Java EE
perspective in Eclipse. Right-click on theServers
view and selectNew
|Server
. It you do not see the GlassFish Server group in the list of server types, then expand Oracle node and select and installGlassFish Tools
:
![](https://static.packt-cdn.com/products/9781788833776/graphics/0c4c49d0-e3b2-4f20-baeb-6254e8f8ee6c.png)
Figure 7.1: Installing GlassFish Tools
- If you have already installed
GlassFish Tools
, or if GlassFish Server type is available in the list, then expand that and select theGlassFish
option:
![](https://static.packt-cdn.com/products/9781788833776/graphics/2ab7afc7-ec5c-4942-8511-11ef8df523c8.png)
Figure 7.2: Creating GlassFish Server instance in Eclipse
- Click
Next
. Enter the path of the GlassFish Server on your local machine in theDomain path
field. Enter admin name and password, if applicable, and...