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, i.e. /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:
- 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
.
- Start the Sun Application Server by selecting Start > Programs > Sun Microsystems > Application Server PE > Start Default Server.
- Launch the Admin Console by selecting Start > Programs > Sun Microsystems > Application Server PE > Admin Console.
- In the left console tree, expand the Applications node, then click Web Applications.
- In the Web Applications page, click Deploy.
- 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.
- Use the default settings and click OK. You will find a new application jreport is listed.
- 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:
- Start the Sun Application Server, and then launch the Admin Console.
- In the console tree, click Application Server.
- Go to the JVM Settings tab, and then click JVM Options.
- In the JVM Option field, click Add JVM Option, and then type -Dlogall=true.
- Click Save to save your changes.
- Restart Sun Application Server and try to reproduce the problem.
- After reproducing the problem, send support@jinfonet.com the log files in
reporthome/logs.