### Deploying to Sun Java™ System Application Server Platform Edition 9.1

The example directory paths listed below are based on Windows. The instructions are applicable to both Unix and Windows installations; however, the format of the paths for Unix would use the Unix format, that is, `/opt/JReport/Server` instead of `C:\JReport\Server`.

It is assumed that:

- Sun Java™ System Application Server Platform Edition 9.1 is installed in the `C:\Sun\AppServer` directory.
- It is assumed that the JReport Server WAR file jreport.war is located in the `C:\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 Server.

To deploy JReport Server to Sun Java™ System Application Server Platform Edition 9.1:

1. Update Sun Application Server's Derby jars by using the lib folder in `C:\JReport\Server\derby` to replace the lib folder in `C:\Sun\AppServer\javadb\lib`.
2. Start the Sun Application Server by selecting Start > Programs > Sun Microsystems > Application Server PE > Start Default Server.
3. Launch the Admin Console by selecting Start > Programs > Sun Microsystems > Application Server PE > Admin Console.
4. In the left console tree, expand the Applications node, then click Web Applications.
5. In the Web Applications page, click Deploy.
6. Select the radio button before Local packaged file or directory that is accessible from the Application Server, then click Browse Files to select the WAR file jreport.war.
7. Use the default settings and click OK. You will find a new application jreport is listed.
8. Access JReport Server using the following URLs:

   `http://<hostname>:8080/jreport/jrserver
   http://<hostname>:8080/jreport/jinfonet/index.jsp
   http://<hostname>:8080/jreport/admin/index.jsp`

#### Troubleshooting

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

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