Deploying to Sun ONE Application Server 7

The example directory paths listed below are based on Solaris or Linux (referred to as UNIX). The instructions are applicable to both UNIX and Windows installations; however, the format of the paths for Windows would use the Windows format, i.e. C:\JReport\Server instead of /opt/JReport/Server.

It is assumed that the JReport Enterprise 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 JReport Enterprise Server.

To deploy JReport Enterprise Server to Sun ONE Application Server 7:

  1. Start the Sun ONE Application Server by selecting Start > Programs > Sun Microsystems > Sun One Application Server7 > Start Application Server.

    Tip: If you are using Sun ONE Application Server 8, the last step should be choosing Start Default Server instead of Start Application Server.

  2. Launch the Admin Console by selecting Start > Programs > Sun Microsystems > Sun One Application Server7 > Start Admin Console.
  3. In the left console tree, expand the Applications node in server1, then click Web Apps.
  4. In the Server1: Applications: Web page, Click Deploy.
  5. Use Browse to select the WAR file jreport.war.
  6. In the Server1: Upload WAR File page, click OK to save your changes.
  7. In the Server1: Applications: Web: Deploy page, type a context path such as / in the Context Root field, and then click OK.
  8. Access JReport Enterprise Server using the following URLs:

    http://host:8080/jrserver
    http://host:8080/jinfonet/index.jsp
    http://host:8080/admin/index.jsp

Troubleshooting

If you run into some problems when using the Sun ONE Application Server 7, send the log files of JReport Enterprise Server to support@jinfonet.com. The following procedure illustrates how to generate the log files:

  1. Start the Sun ONE Application Server, and then launch the Admin Console.
  2. In the console tree, click server1. The Server1 page will appear in the right panel.
  3. Go to the JVM Settings tab, and then click JVM Options.
  4. In the JVM Option field, type -Dlogall=true, and then click Add. Click Save to save your changes.
  5. Restart Sun ONE Application Server 7 and try to reproduce the problem.
  6. After reproducing the problem, send support@jinfonet.com the log files in reporthome/logs.