Start and Stop Glassfish 5 Server

Q

How to start and stop the Glassfish 5 server? I have it installed as part of Java EE 8 SDK.

✍: FYIcenter

A

You can use the "asadmin" tool in Java EE SDK to start and stop the Glassfish server in a command window as descriped below:

1. Make sure you have Java SE JDK 8 installed.

2. Make sure you have Java EE SDK 8.

3. To start the Glassfish server:

C:\>set AS_JAVA=\fyicenter\jdk-1.8.0

C:\>\fyicenter\glassfish5\bin\asadmin start-domain

Waiting for domain1 to start ..............................
Successfully started the domain : domain1
domain  Location: C:\fyicenter\glassfish5\glassfish\domains\domain1
Log File: C:\fyicenter\glassfish5\glassfish\domains\domain1\logs\server.log
Admin Port: 4848
Command start-domain executed successfully.

By default, Glassfish is starting with "domain1" at port 4848.

2. To stop the Glassfish server:

C:>\fyicenter\glassfish5\bin\asadmin stop-domain

Waiting for the domain to stop .
Command stop-domain executed successfully.

 

Download and Install Java EE 7 SDK

What Is java_ee_sdk-8.zip

Download and Review Java EE SDK

⇑⇑ FAQ for Java EE (Enterprise Edition)

2023-02-19, 418🔥, 0💬