The example directory paths listed below are based on Solaris or Linux (referred to as Unix). The instructions are applicable to both Unix and Windows installations; however, the format of the paths for Windows would use the Windows format, i.e. 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 V3:
You need not add this JVM option if you are using Windows.
http://<hostname>:8080/jreport
http://<hostname>:8080/jreport/admin/index.jsp
http://<hostname>:8080/jreport/jinfonet/index.jsp
Note: GlassFish 3.1.2 uses a different Derby driver from JReport which leads to that the 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/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.
If you run into some problems when using the GlassFish V3, send the log files of JReport Server to support@jinfonet.com. The following procedure illustrates how to generate the log files:
reporthome/logs
.
The GlassFish log file may also help to identify the problem. It is /opt/glassfish/domains/domain1/logs/server.log.