Deploying Server to GlassFish Server Open Source Edition 5.0
This topic describes how you can deploy Logi Report Server to GlassFish.
In the example we use directory paths based on Unix. The instructions are applicable to both Unix and Windows installations. However, the format of the paths for Windows should use the Windows format, that is, C:\LogiReport\Server
instead of /opt/LogiReport/Server
.
Assume that the Logi Report Server WAR file jreport.war is 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 see a new node named jreport. Select it 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:
http://<hostname>:8080/jreport
http://<hostname>:8080/jreport/jinfonet/index.jsp
Troubleshooting
If you run into problems when using GlassFish, send the log files of Logi Report Server to support@logianalytics.com. 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 support@logianalytics.com the log files in
reporthome/logs
.The GlassFish log file may also help to identify the problem. It is /opt/glassfish/domains/domain1/logs/server.log.