Deploying to Resin 4.0.53
This topic introduces how to deploy Logi JReport Server Guide v15 Server to Resin 4.0.53. 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:
- Resin 4.0.53 is installed in the
/opt/resin
directory. - 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 Resin 4.0.53:
- Generate the password.
- Modify resin.properties in
/opt/resin/conf
. Set remote_admin_enable to true and add the generated password. - Enable the commands that allow administrators and programmers perform debugging and monitoring tasks on remote Resin server using command line.
By default these commands are disabled. Enabling the command requires ManagerService be registered in resin.xml file. Since the default resin.xml already includes a <resin:AdminAuthenticator> with a <resin:import>, you can just reuse the admin configuration from the /resin-admin page.
- Start Resin 4.0.53 by running the resin.sh start script in
/opt/resin/bin.
- Log onto the Resin 4.0.53 Administration Console with the specified user name and password using the URL
http://localhost:8080/resin-admin/index.php
. - In the deploy tab, select Browse to select the file Logi JReport.war. In the Name text box, type in Logi JReport. Then select Deploy.
- Access Logi JReport Server using the following URLs:
http://localhost:8080/Logi JReport/jrserver
http://localhost:8080/Logi JReport/admin/index.jsp
http://localhost:8080/Logi JReport/jinfonet/index.jsp
Troubleshooting
If you run into problems when using Logi JReport Server in Resin, send the log files of Logi JReport Server to support@jinfonet.com. The following procedure illustrates how to generate the log files:
- Modify the file resin.sh in
/opt/resin/bin
by adding-Dlogall=true
after the reporthome definition:"$JAVA" $JAVA_OPTS \ -classpath "$RESIN_CLASSPATH" -Dreporthome=/opt/Logi JReport/Server \ -Dlogall=true \ org.resin.Main "$@"
- Run the modified resin.sh to start Resin.
- After reproducing the problem, send support@jinfonet.com the log files in
reporthome/logs
.The Resin log files may also help to identify the problem. The most useful one is
/opt/Resin/server/default/log/server.log.