title: Eclipse jboss tools: can't instantiate jacorb or sun ORB in WildFly
body: <p>Using Eclipse with Jboss Tools. I can create a WildFly 8.0 Runtime all right but it does not include jacorb automatically. WildFly comes with org.jboss.as.jacorb module in /system/base/org/jacorb. I added the following to standalone.xml:</p>
  
  <pre><code>&lt;extensions&gt;  
      ...  
      ...  
     &lt;extension module="org.jacorb"/&gt;  
  &lt;/extension&gt;  
  </code></pre>
  
  <p>That module contains a dependency to module "org.jacorb" which contains the actual ORB implementation.
  However, I get a class not found error when trying to instantiate the ORB. The ORB class, contained in the module org.jacorb, is not being found:</p>
  
  <pre><code> 15:03:43,021 ERROR [stderr] (default task-4) java.lang.ClassNotFoundException: org.jacorb.orb.ORB from [Module "deployment.SM_Web.war:main" from Service Module Loader]
   15:03:43,131 ERROR [stderr] (default task-4)   at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213)
   15:03:43,131 ERROR [stderr] (default task-4)   at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459)
   15:03:43,132 ERROR [stderr] (default task-4)   at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408)
   15:03:43,132 ERROR [stderr] (default task-4)   at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389)
   15:03:43,132 ERROR [stderr] (default task-4)   at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134)
   15:03:43,172 ERROR [stderr] (default task-4)   at java.lang.Class.forName0(Native Method)
   15:03:43,172 ERROR [stderr] (default task-4)   at java.lang.Class.forName(Class.java:270)
  </code></pre>
  
  <p>When I set: "org.omg.CORBA.ORBClass" property to "com.sun.corba.se.impl.orb.ORBImpl"
  I get:
      java.lang.ClassNotFoundException: com.sun.corba.se.impl.orb.ORBImpl from [Module "deployment.SM_Web.war:main" from Service Module Loader]</p>
  
  <p>Do I have to do something special to instantiate an ORB in WildFly?</p>
  
  <p>Update: got it to work. I was on the right track, what was missing was the following jboss-deployment-structure.xml under WEB-INF:</p>
  
  <p>Add the following jboss-deployment-structure.xml under WEB-INF:</p>
  
  <pre><code> &lt;jboss-deployment-structure&gt;  
    &lt;deployment&gt;  
      &lt;dependencies&gt;  
       &lt;module name="org.jacorb" /&gt;  
      &lt;/dependencies&gt;  
    &lt;/deployment&gt;  
   &lt;/jboss-deployment-structure&gt;  
  </code></pre>