2.3. Running ReportServer on JBoss Wildfly

To run ReportServer on JBoss Wildfly only a few configuration options need to be considered. First, you should ensure that JBoss is configured to use sufficient memory. The necessary changes can be made in file wildfly/bin/standalone.conf (or standalone.conf.bat for windows systems). To run ReportServer you should provide JBoss with at least 1.5 GB of heap space. Depending on the number of users, this value should be increased. Following is an example configuration:

JAVA_OPTS="-Xms64m -Xmx2g -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true"

Besides increasing the memory as described above, you will need to add an application descriptor file called jboss-deployment-structure.xml. You will need to place this configuration file into the WEB-INF directory of ReportServer. Following is the content of the descriptor.

<?xml version="1.0" encoding="UTF-8"?>  
<jboss-deployment-structure>  
  <deployment>  
    <exclusions>  
      <module name="org.hibernate" /> 
      <module name="org.antlr" /> 
    </exclusions>  
    <exclude-subsystems>
      <subsystem name="weld" />
      <subsystem name="org.hibernate" />
      <subsystem name="org.hibernate.validator" />
      <subsystem name="org.antlr" /> 
      <subsystem name="jpa" /> 
    </exclude-subsystems>
    <dependencies>  
      <module name="org.bouncycastle" />  
    </dependencies>  
  </deployment>  
</jboss-deployment-structure>

Having increased the memory and added the jboss-deployment-structure.xml to the ReportServer WEB-INF directory, you are now good to go.