Installing by building a war file on Windows to deploy to Linux/Unix

There are user cases when they need to install JReport Server into application servers in the cloud and may not even own a machine of the type they are installing to. For example you use Tomcat on Linux in a cloud environment but only have Windows machines available locally. You can then install JReport server on Windows, make a war file and then deploy it to the Tomcat on Linux.

  1. Install JReport Server on the local Windows machine.
  2. Create a WAR via the following command line while specifying a report home. The report home uses the path on Linux on the target machine.

    makewar.bat -Dreporthome=/opt/reporthome

  3. Add any JDBC drivers that are required into the jreport.war/WEB-INF/lib directory.
  4. Visit Tomcat from the local machine by the URL http://<host>:8080/, deploy the WAR. 8080 is the default port of Tomcat and suppose it works.
  5. Log onto JReport Server Administration console by the URL http://<host>:8080/jreport/admin, go to the Data tab on the system toolbar, configure the server database for System DB/realm DB/Profiling DB. It shouldn't be Derby.
  6. Restart JReport Server and access http://<host>:8080/jreport to see if you can run reports.