Running With Tomcat 8.0.15
This topic describes how to run Logi JReport Server Monitor with Tomcat 8.0.15.
Assume that:
- Logi JReport Server Monitor has been installed to
C:\Logi JReport\Monitor.
- Tomcat has been installed to
C:\tomcat
.
Configuring Tomcat
- Build the Logi JReport Server Monitor WAR file using the makewar.bat/makewar.sh utility in the
C:\Logi JReport\Monitor\bin
directory. The generated WAR file monitor.war will be saved to the directoryC:\Logi JReport\Monitor\bin\distribute
. - Set JAVA_HOME in the batch file catalina.bat in
C:\tomcat\bin
. For example, we useC:\jdk1.8.0
.rem $Id: catalina.bat,v 1.29 2002/04/01 19:51:31 patrickl Exp $ rem --------------------------------------------------------------------------- set JAVA_HOME=C:\jdk1.8.0 rem Guess CATALINA_HOME if not defined if not "%CATALINA_HOME%" == "" goto gotHome set CATALINA_HOME=.
- Modify catalina.bat again to set the Java system variable. For example,
if not "%SECURITY_POLICY_FILE%" == "" goto doSecurity %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dmonitor.home="C:\Logi JReport\Monitor"
- Copy the WAR file monitor.war to
C:\tomcat\webapps
. - Copy rmi.auth from <server_install_root>\bin of the admin server (Logi JReport Server you want to monitor) to C:\Logi JReport\Monitor\bin. Enable RMI service for remote connection by setting the property server.rmiserver.enable to true in server.properties in <server_intall_root>\bin. And then start the admin server.
Launching Tomcat
- Start Tomcat using
C:\tomcat\bin\startup
. - Load the default page of Server Monitor using
http://hostname:8080/monitor
orhttp://hostname:8080/monitor/monitor/index.jsp
. If the admin server and Logi JReport Server Monitor are installed in different computers, you need to specify the right host and port of the admin server in Logi JReport Server Monitor side via the following two properties in server.properties in C:\Logi JReport\Monitor\bin before starting Tomcat:
- admin.server.host = The RMI host name or IP address of the admin server.
- admin.server.port = The RMI port number of the admin server.