Integrating by building a user WAR and embedding a self-contained JReport Server

You can embed a self-contained JReport Server into your WAR.

Structure of the user WAR

For example, here you can create a WAR named MyApp.war, and then embed a self-contained JReport Server inside it. The structure of your WAR may be as follows:

MyApp.war

If you put the JReport WAR related JSPs to a sub folder, for example, jreport, and this time the structure of your WAR may be as follows:

MyApp.war

To run JReport reports, you must do the following configurations:

WEB-INF/web.xml in the user WAR

You should add listener into the web.xml as follows:

<listener>
<listener-class>jet.server.servlets.JRServerContextListener</listener-class>
</listener>