Deploying to Tomcat 8.5.23
This topic introduces how to deploy Logi JReport Server Guide v15 Server to Tomcat 8.5.23. 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:
- Tomcat 8.5.23 is installed in the
/opt/apache-tomcat-8.5.23
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.Note: When unpackWARs="false" is set in server.xml in the conf folder of Tomcat, you need to do the following:
- Modify the LogConfig.properties file in
/opt/Logi JReport/Server/bin
before creating the WAR as follows:- Remove the code
packages = com.jinfonet.util
. - Change JRRollingFileAppender to RollingFile all over the file.
- Change JRPatternLayout to PatternLayout all over the file.
- Remove the code
- Add the parameter -Djbossas7=true when launching makewar.bat/.sh to build the WAR, for example:
makewar.bat -Djbossas7=true
- Move log4j-api-2.7.jar and log4j-core-2.7.jar from Logi JReport.war > WEB-INF > lib to the lib folder of Tomcat.
- Modify the LogConfig.properties file in
To deploy Logi JReport Server to Tomcat 8.5.23:
- Ensure that Tomcat is shut down.
- Copy the Web Application Archive Logi JReport.war to
/opt/apache-tomcat-8.5.23/webapps
. - Start Tomcat by running the
startup.sh
script. - Access Logi JReport Server using the following URLs:
http://hostname:8080/Logi JReport/jrserver
http://hostname:8080/Logi JReport/admin/index.jsp
http://hostname:8080/Logi JReport/jinfonet/index.jsp
Troubleshooting
If you run into problems when using Logi JReport Server in Tomcat, send the log files of Logi JReport Server to support@jinfonet.com. The following procedure illustrates how to generate the log files:
- Modify the catalina.sh file in
/opt/apache-tomcat-8.5.23/bin
.In the file catalina.sh, add
-Dlogall=true
after the reporthome definition:JAVA_OPTS="-Dreporthome=
/opt/Logi JReport/Server
-Dlogall=true"
Cygwin=falseOr if no reporthome is specified, add as follows:
JAVA_OPTS=-Dlogall=true
Cygwin=false - After editing catalina.sh, start Tomcat.
- To get the information about the Logi JReport Server environment, you can access
http://hostname:8080/Logi JReport/admin/info.jsp?cmd=info
. - Save the output to a file.
- After reproducing the problem, send support@jinfonet.com the log files in
reporthome/logs.
The Tomcat log files may also help to identify the problem. The most useful one is
/opt/apache-tomcat-8.5.23/logs/catalina.out.