Skip to content

GlassFish

GlassFish Server

You need to reserve 6 TCP ports and enable Binexec. Then copy the base GlassFish server directory:
cp -r /usr/local/glassfish-4.1 /usr/home/login/

In the GlassFish domain configuration file
/usr/home/login/glassfish-4.1/glassfish/domains/domain1/config/domain.xml
you must adjust the highlighted fragments by setting the numbers of the reserved ports.

<network-listener port="'''8080'''" protocol="http-listener-1" transport="tcp" name="http-listener-1" thread-pool="http-thread-pool"></network-listener>

<network-listener port="'''8181'''" protocol="http-listener-2" transport="tcp" name="http-listener-2" thread-pool="http-thread-pool"></network-listener>

<network-listener port="'''4848'''" protocol="admin-listener" transport="tcp" name="admin-listener" thread-pool="admin-thread-pool"></network-listener>

<system-property name="JMS_PROVIDER_PORT" value="'''27676'''" description="Port Number that JMS Service will listen for remote clients connection." />

<iiop-listener port="'''3700'''" id="orb-listener-1" address="0.0.0.0" lazy-init="true"></iiop-listener>

<jmx-connector port="'''8686'''" address="0.0.0.0" security-enabled="false" auth-realm-name="admin-realm" name="system"></jmx-connector>

The rest of the GlassFish domain configuration must be set manually. Start the GlassFish server with the command:

/usr/home/login/glassfish-4.1/bin/asadmin start-domain

To make the server accessible on port 80, you must create a proxy-type domain with the target address localhost and the target port the same as the one entered in http-listener-1.

Java