Deploying to GlassFish Server Open Source Edition 5.0
This topic introduces how to deploy Logi Report Server to GlassFish. The example directory paths listed below are based on Unix. The instructions are applicable to both Unix and Windows installations; however, the format of the paths for Windows would use the Windows format, that is,
C:\LogiReport\Server instead of
It is assumed that the Logi Report Server WAR file jreport.war is located in the
/opt/LogiReport/Server/bin/distribute directory. To create the WAR file refer to the instructions in Building a WAR/EAR File to Include a Self-contained Logi Report Server.
To deploy Logi Report Server to GlassFish Server Open Source Edition 5.0:
- Start GlassFish in the default domain1 and launch the Admin Console.
- Select the Applications node on the left.
- Select Deploy on the displayed page.
- Select Choose File to select the WAR file jreport.war.
- Leave Application Name and Context Root as jreport and jreport. Then select OK.
- Expand the Deployment node on the left and you will see a new node named jreport. Select jreport and then on the displayed page select Save.
- In the console tree, select Configuration. Go to the JVM Settings tab and select JVM Options. In the JVM Options section, select Add JVM Option, and then type -Djava.awt.headless=true. Select Save to save your changes.
You need not add this JVM option if you are using Windows.
- Restart GlassFish and start the application jreport.
- Access Logi Report Server using the following URLs:
If you run into some problems when using GlassFish, send the log files of Logi Report Server to firstname.lastname@example.org. The following procedure illustrates how to generate the log files:
- Start GlassFish in the default domain1 and then launch the Admin Console.
- In the console tree, select Configuration.
- Go to the JVM Settings tab, and then select JVM Options.
- In the JVM Options section, select Add JVM Option, and then type -Dlogall=true. Select Save to save your changes.
- Restart GlassFish and try to reproduce the problem.
- After reproducing the problem, send email@example.com the log files in
The GlassFish log file may also help to identify the problem. It is /opt/glassfish/domains/domain1/logs/server.log.