Deploying to GlassFish V3
This topic introduces how to deploy Logi JReport Server Guide v15 Server to GlassFish V3. 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:\Logi JReport\Server
instead of /opt/Logi JReport/Server
.
It is assumed that the Logi JReport Server WAR file Logi JReport.war is located in the /opt/Logi 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 Logi JReport Server.
To deploy Logi JReport Server to GlassFish V3:
- Start the GlassFish in the default domain1 and then 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 Logi JReport.war.
- Leave Application Name and Context Root as Logi JReport and Logi JReport. Then select OK.
- Expand the Deployment node on the left and you will see a new node named Logi JReport. Select Logi JReport and then on the displayed page select Save.
- 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 -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 then start the application Logi JReport.
- Access Logi JReport Server using the following URLs:
http://<hostname>:8080/Logi JReport
http://<hostname>:8080/Logi JReport/admin/index.jsp
http://<hostname>:8080/Logi JReport/jinfonet/index.jsp
Note: GlassFish 3.1.2 uses a different Derby driver from Logi JReport which leads to that the Logi JReport War file does not work in GlassFish 3.1.2. To solve this, you can replace the files in /opt/glassfish3.1.2/javadb/lib
with the jar files in /opt/Logi JReport/Server/derby/lib
, or use the folder /opt/glassfish3.0.2/javadb/lib
to replace the folder /opt/glassfish3.1.2/javadb/lib
if GlassFish 3.0.2 resources are available.
Troubleshooting
If you run into some problems when using the GlassFish V3, send the log files of Logi JReport Server to support@jinfonet.com. The following procedure illustrates how to generate the log files:
- Start the 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@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.