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:
/opt/jboss
directory./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 Server.
To deploy JReport Server to JBoss 5.0.1:
/opt/jboss/bin/shutdown.sh -S
. jreport.war\WEB-INF\lib
./opt/jboss/server/default/deploy
. http://localhost:8080/jreport/jrserver
http://localhost:8080/jreport/admin/index.jsp
http://localhost:8080/jreport/jinfonet/index.jsp
If you run into problems when using JReport Server in JBoss, send the log files of JReport Server to support@jinfonet.com. The following procedure illustrates how to generate the log files:
/opt/jboss/bin
.
In the file run.sh, add -Dlogall=true
after the reporthome definition:
|
reporthome/logs
.
The JBoss log files may also help to identify the problem. The most useful one is /opt/jboss/server/default/log/server.log.
Notes:
<JBoss_home>/standalone/configuration/standalone.xml
, change the value to 180 (seconds) or a bigger number. <?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
<deployment>
<exclusions>
<module name="org.apache.log4j" />
</exclusions>
</deployment>
</jboss-deployment-structure>