title: Why we have to declare dependencies on manifest of JBOSS 8 (wildfly)?
body: <p>given the following EAR:</p>
  
  <ul>
  <li>my-app.ear
  <ul>
  <li><strong>my-ejb</strong>.jar</li>
  <li>my-webapp.war</li>
  <li>lib
  <ul>
  <li><strong>my-lib</strong>.jar</li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>my-ejb need the oracle library to work with oracle spatial in order to construct geometry and to store data. The module of oracle is correctly loaded by JBOSS 8 (wildfly).</p>
  
  <p>When I started the application I received <code>ClassNotFoundException oracle.sql.STRUCT</code>.</p>
  
  <p><strong>OK I added the dependency of oracle driver ojdbc6.jar on my-ejb <code>META-INF/manifest.mf</code>.</strong></p>
  
  <pre><code>Class-Path: ojdbc6.jar
  Dependencies: oracle.sql 
  </code></pre>
  
  <p>When I started the application I received <code>ClassNotFoundException oracle.sql.StructDescriptor</code>. I know that when I read data to and from a resultset, the object coming out of the resultset is an instance of a <code>oracle.sql.STRUCT</code> class but the <code>oracle.sql.StructDescriptor</code> is in the same package. </p>
  
  <p><strong>OK I added the same dependency of oracle driver ojdbc6.jar on my-lib <code>META-INF/manifest.mf</code>.</strong></p>
  
  <p>And it works!  </p>
  
  <p>My question is</p>
  
  <ul>
  <li>which is the role of manifets on JBOSS 8?</li>
  <li>why on oracle weblogic I do NOT need to add these dependencies on manifest.mf?</li>
  </ul>