Previous Page Next Page
Deploying to GlassFish Server Open Source Edition 5.0
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:\JReport\Server
instead of /opt/JReport/Server
.
It is assumed that the JReport Server WAR file jreport.war is located in the /opt/JReport/Server/bin/distribute
directory. To create the WAR file refer to the instructions in Building a WAR/EAR File to Include a Self-contained JReport Server.
To deploy JReport Server to GlassFish Server Open Source Edition 5.0:
- Start GlassFish in the default domain1 and launch the Admin Console.
- Click the Applications node on the left.
- Click Deploy on the displayed page.
- Click Choose File to select the WAR file jreport.war.
- Leave Application Name and Context Root as jreport and jreport. Then click OK.
- Expand the Deployment node on the left and you will see a new node named jreport. Click jreport and then on the displayed page click Save.
- In the console tree, click Configuration. Go to the JVM Settings tab and click JVM Options. In the JVM Options section, click Add JVM Option, and then type -Djava.awt.headless=true. Click 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 JReport Server using the following URLs:
http://<hostname>:8080/jreport
http://<hostname>:8080/jreport/jinfonet/index.jsp
Troubleshooting
If you run into some problems when using GlassFish, send the log files of JReport Server to support@jinfonet.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, click Configuration.
- Go to the JVM Settings tab, and then click JVM Options.
- In the JVM Options section, click Add JVM Option, and then type -Dlogall=true. Click Save to save your changes.
- Restart GlassFish and try to reproduce the problem.
- After reproducing the problem, send support@jinfonet.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.
Previous Page Next Page