Deploying Server to Jetty
This topic describes how you can deploy Logi Report Server to Jetty.
We use paths based on UNIX path name protocol in our example. The instruction applies to both UNIX and Windows installation. However, the path formats differ. For Windows it is in this format C:\LogiReport\Server instead of /opt/LogiReport/Server.
Assume that the Logi Report Server WAR file jreport.war is in the /opt/LogiReport/Server/bin/distribute directory. To create the WAR file, see Building a WAR/EAR File to Include a Self-contained Logi Report Server.
Logi Report Server does not support Jetty 11.
To deploy Logi Report Server to Jetty 9.4.42:
- Add jreport.war to the
/opt/Jetty9.4.42/demo_base/webappsdirectory. - Start Jetty using the command
java -jar /start.jar. If your Logi Report uses JDK 9 or above, you need to start Jetty using the commandjava @/opt/LogiReport/Server/bin/java.option -jar ../start.jarinstead. - Access Logi Report Server using either URL:
http://<hostname>:8080/jreport/jrserver
http://<hostname>:8080/jreport/jinfonet/index.jsp
To deploy Logi Report Server to Jetty 10.0.1:
-
Create a directory in Jetty for Logi Report Server.
$ export JETTY_HOME=/path/to/jetty-home
$ mkdir /path/to/jetty-base
$ cd /path/to/jetty-base
$ java -jar $JETTY_HOME/start.jar --add-module=server,http,deploy -
Add a module LogiReport.mod
$ cd $JETTY_HOME/modules
$ vi ./LogiReport.modwith the content (an example):
[description]
logi Report Server Web Application
[depends]
servlet
annotations
apache-jsp
[files]
/path/to/jetty-base/webapps/jreport.war
[ini-template]
jetty.http.host=192.0.0.1 -
Add jreport.war to the
/path/to/jetty-base/webappsdirectory. -
Run the command to deploy the WAR:
$JAVA_HOME/java @/opt/LogiReport/Server/bin/java.option -jar $JETTY_HOME/start.jar --add-module=LogiReport
You should specify the path of java.option when Logi Report uses JDK 9 or higher. - Start the Jetty server.
$JAVA_HOME/java @/opt/LogiReport/Server/bin/java.option -jar $JETTY_HOME/start.jar
You should specify the path of java.option when using JDK 9 or higher. - Access Logi Report Server using either URL:
http://<hostname>:8080/jreport/jrserver
http://<hostname>:8080/jreport/jinfonet/index.jsp
Previous Topic
Back to top