Before you can deploy your application, GlassFish must be configured correctly and running.
If the Services window is not visible, choose Window -> Services.
In the Services window, expand the Servers node.
The Servers node should contain a GlassFish sub-node. If an application server node does not appear, go to To configure GlassFish.
If a green arrow badge appears on the GlassFish node, the server is running. If a green arrow badge does not appear, go to To start GlassFish.
If the Services window is not visible, choose Window -> Services.
In the Services window, right-click the Servers node and choose Add Server from the pop-up menu.
The Add Server Instance dialog box opens.
In the Choose Server page, from the Server drop-down list, select GlassFish.
(Optional) In the Name field, change the default name for the server.
The IDE uses this name to identify the server.
Click Next.
The Platform Location Folder page appears.
In the Platform Location field, use the Browse button to navigate to and select the installation location of the application server.
The default installation location is different depending on the type of installation and the platform, as shown in the following table.
Platform |
Installer |
SOA Installation |
Tools Bundle Installation |
---|---|---|---|
Solaris OS Linux |
root |
/opt/SUNWappserver |
/opt/SDK |
Solaris OS Linux |
user |
~/SUNWappserver |
~/SDK |
Mac OS X |
N/A |
~/SUNWappserver |
~/SDK |
Windows |
N/A |
C:\Sun\AppServer |
C:\Sun\SDK |
Select the Register Local Default Domain radio button and click Next.
Enter the user name and password for the domain's administrator.
If you accepted the default values during the installation, the user name is admin and the password is adminadmin.
Click Finish.