Deploying to Jetty 9.4.20
This topic introduces how to deploy Logi JReport Server to Jetty. 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:\JReport\Server
instead of /opt/JReport/Server
.
It is assumed that the Logi 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 Logi JReport Server.
To deploy Logi JReport Server to Jetty 9.4.20:
- Remove or comment out the following codes in the web.xml of jreport.war if you are integrating Logi JReport Server with Jetty in a non-remote environment:
<login-config>
<auth-method>BASIC</auth-method>
</login-config> - Add jreport.war to the
/opt/Jetty9.4.20/demo_base/webapps
directory. - Start Jetty 9.4.20 using command
java -jar /start.jar
. If your Logi JReport uses JDK 9 or above, you need to start Jetty using commandjava @/FolderName/java.option -jar ../start.jar
instead. - Access Logi JReport Server using the following URLs:
http://<hostname>:8080/jreport/jrserver
http://<hostname>:8080/jreport/jinfonet/index.jsp