title: Crystal Report 2016 with Wildfly 11
body: <p>Anyone successfully integrated <strong>Crystal Report 2016 BO/BI</strong> with <strong>Wildfly 11</strong> ?</p>
  
  <p>I have the tomcat version that works but with Wildfly 11 it fails at this point. </p>
  
  <pre><code>ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();
  </code></pre>
  
  <p>The exception that I am getting is, (I have all the required jars, since the same code works with tomcat).  I am sure this has to do with Wildfly v11.</p>
  
  <p>Anyone ?</p>
  
  <blockquote>
    <p>Caused by: java.lang.NoClassDefFoundError: Failed to link
    com/crystaldecisions/thirdparty/com/ooc/OB/TenantCategoryPolicy_impl
    (Module "deployment.master_dev_ca.war" from Service Module Loader):
    Failed to link
    com/crystaldecisions/thirdparty/com/ooc/OB/TenantCategoryPolicy
    (Module "deployment.master_dev_ca.war" from Service Module Loader):
    org/omg/CORBA/portable/IDLEntity  at
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      at
    org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:446)
      at
    org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)
      at
    org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:77)
      at org.jboss.modules.Module.loadModuleClass(Module.java:713)    at
    org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
      at
    org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412)
      at
    org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400)
      at
    org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
      at
    com.crystaldecisions.thirdparty.com.ooc.OBCORBA.ORB_impl.initializeDefaultPolicies(ORB_impl.java:369)
      at
    com.crystaldecisions.thirdparty.com.ooc.OBCORBA.ORB_impl.initialize(ORB_impl.java:196)
      at
    com.crystaldecisions.thirdparty.com.ooc.OBCORBA.ORB_impl.setParameters(ORB_impl.java:812)
      at
    com.crystaldecisions.thirdparty.com.ooc.OBCORBA.ORB_impl.init(ORB_impl.java:1313)
      at
    com.crystaldecisions.enterprise.ocaframework.idl.helper.ORBHelper.init(ORBHelper.java:57)
      at
    com.crystaldecisions.enterprise.ocaframework.ServiceMgr.(ServiceMgr.java:402)
      at
    com.crystaldecisions.enterprise.ocaframework.ServiceMgrFactory.getServiceMgr(ServiceMgrFactory.java:66)
      at
    com.crystaldecisions.sdk.occa.security.internal.LogonService.ensureServiceStub(LogonService.java:646)
      at
    com.crystaldecisions.sdk.occa.security.internal.LogonService.doUserLogon(LogonService.java:829)
      at
    com.crystaldecisions.sdk.occa.security.internal.LogonService.doUserLogon(LogonService.java:806)
      at
    com.crystaldecisions.sdk.occa.security.internal.LogonService.userLogon(LogonService.java:211)
      at
    com.crystaldecisions.sdk.occa.security.internal.SecurityMgr.userLogon(SecurityMgr.java:166)
      at
    com.crystaldecisions.sdk.framework.internal.SessionMgr.logon_aroundBody0(SessionMgr.java:457)
      at
    com.crystaldecisions.sdk.framework.internal.SessionMgr.logon_aroundBody1$advice(SessionMgr.java:521)
      at
    com.crystaldecisions.sdk.framework.internal.SessionMgr.logon(SessionMgr.java:1)
      at
    com.aventis.master.presentation.action.CrystalAction.doReport(CrystalAction.java:287)
      at
    com.aventis.master.presentation.action.CrystalAction.loadReports(CrystalAction.java:1028)
      ... 52 more</p>
  </blockquote>
  
  <p>Thanks in advance,
  D.</p>
  
  <p><strong>Update : Still not working :(</strong>
  My module setup,
  I put all the .jar files in \wildfly_installation_dir\modules\systems\layers\base\bo\crystalreports\main\</p>
  
  <pre><code>aspectjrt.jar
  bcm.jar
  ceaspect.jar
  cecore.jar
  celib.jar
  cereports.jar
  certjFIPS.jar
  cesdk.jar
  cesession.jar
  com.azalea.ufl.barcode.1.0.jar
  commons-collections-3.2.2.jar
  commons-configuration-1.2.jar
  commons-lang-2.1.jar
  commons-lang-2.3.jar
  commons-logging.jar
  corbaidl.jar
  cryptojFIPS.jar
  CrystalReportsRuntime.jar
  CrystalReportsSDK.jar
  cvom.jar
  DatabaseConnectors.jar
  ebus405.jar
  icu4j.jar
  jcmFIPS.jar
  JDBInterface.jar
  keycodeDecoder.jar
  log4j.jar
  logging.jar
  QueryBuilder.jar
  sap.com~tc~sec~csi.jar
  serializer.jar
  SL_plugins.jar
  ssljFIPS.jar
  TraceLog.jar
  webreporting-jsf.jar
  webreporting.jar
  xpp3.jar
  </code></pre>
  
  <p>and in <strong>jboss-deployment-structure.xml</strong></p>
  
  <pre><code>&lt;jboss-deployment-structure&gt;
     &lt;deployment&gt;
        &lt;dependencies&gt;
            &lt;module name="bo.crystalreport" export="true"/&gt;
        &lt;/dependencies&gt;
  
       &lt;exclusions&gt;
           &lt;module name="org.apache.cxf" /&gt;
           &lt;module name="org.apache.cxf.impl" /&gt; 
           &lt;module name="org.apache.cxf.services-sts" /&gt; 
           &lt;module name="org.apache.cxf.ws-security" /&gt; 
  ...
  </code></pre>
  
  <p>My module.xml looks like this.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;module xmlns="urn:jboss:module:1.3" name="bo.crystalreport"&gt;
     &lt;resources&gt;
        &lt;resource-root path="aspectjrt.jar"/&gt;
        &lt;resource-root path="bcm.jar"/&gt;
        &lt;resource-root path="ceaspect.jar"/&gt;
        &lt;resource-root path="cecore.jar"/&gt;
        &lt;resource-root path="celib.jar"/&gt;
        &lt;resource-root path="cereports.jar"/&gt;
        &lt;resource-root path="certjFIPS.jar"/&gt;
        &lt;resource-root path="cesdk.jar"/&gt;
        &lt;resource-root path="cesession.jar"/&gt;
        &lt;resource-root path="com.azalea.ufl.barcode.1.0.jar"/&gt;
        &lt;resource-root path="commons-collections-3.2.2.jar"/&gt;
        &lt;resource-root path="commons-configuration-1.2.jar"/&gt;
        &lt;resource-root path="commons-lang-2.1.jar"/&gt;
        &lt;resource-root path="commons-lang-2.3.jar"/&gt;
        &lt;resource-root path="commons-logging.jar"/&gt;
        &lt;resource-root path="corbaidl.jar"/&gt;
        &lt;resource-root path="cryptojFIPS.jar"/&gt;
        &lt;resource-root path="CrystalReportsRuntime.jar"/&gt;
        &lt;resource-root path="CrystalReportsSDK.jar"/&gt;
        &lt;resource-root path="cvom.jar"/&gt;
        &lt;resource-root path="DatabaseConnectors.jar"/&gt;
        &lt;resource-root path="ebus405.jar"/&gt;
        &lt;resource-root path="icu4j.jar"/&gt;
        &lt;resource-root path="jcmFIPS.jar"/&gt;
        &lt;resource-root path="JDBInterface.jar"/&gt;
        &lt;resource-root path="keycodeDecoder.jar"/&gt;
        &lt;resource-root path="log4j.jar"/&gt;
        &lt;resource-root path="logging.jar"/&gt;
        &lt;resource-root path="QueryBuilder.jar"/&gt;
        &lt;resource-root path="sap.com~tc~sec~csi.jar"/&gt;
        &lt;resource-root path="serializer.jar"/&gt;
        &lt;resource-root path="SL_plugins.jar"/&gt;
        &lt;resource-root path="ssljFIPS.jar"/&gt;
        &lt;resource-root path="TraceLog.jar"/&gt;
        &lt;resource-root path="webreporting-jsf.jar"/&gt;
        &lt;resource-root path="webreporting.jar"/&gt;
        &lt;resource-root path="xpp3.jar"/&gt;
     &lt;/resources&gt;
     &lt;dependencies&gt;
        &lt;module name="org.omg.api"/&gt;    
        &lt;module name="javax.faces.api"/&gt;
     &lt;/dependencies&gt;
  &lt;/module&gt;
  </code></pre>