GlassFish is an open source application server from Oracle. GlassFish 4 implements the JEE specifications, which include the Java Servlet and JavaServer Pages specifications, as well as other parts of the JEE specification. The latest version of the GlassFish 4 server is 4.0, and it will be used for the examples in this chapter.
The GlassFish 4 application server can be downloaded from https://glassfish.java.net/download.html.
Download the ZIP (quick start) file.
Decompress the GlassFish 4 file in the ${HOME}
directory on Linux systems or C:
on Windows systems.
Set the GLASSFISH_HOME
environment variable, and start GlassFish 4 on Linux:
export GLASSFISH_HOME=${HOME}/glassfish4 ${GLASSFISH_HOME}/bin/asadmin start-domain
Set the GLASSFISH_HOME
environment variable and start GlassFish 4 on Windows:
set GLASSFISH_HOME=C:\glassfish4%GLASSFISH_HOME%\bin\asadmin start-domain
Verify that GlassFish 4 is running correctly by going to the following website:
http://localhost...