title: How to exclude the default Hibernate (5) from Wildfly 10 application?
body: <p>(I've revised my question based on the helpful hint from James Perkins) 
  I'm trying to upgrade from Jboss 4.2.3 to WildFly 10 is an involved process. In order not to change too many things I'd like to try get the application to work without changing the Hibernate dependency (to the default Hibernate 5).<br>
  The documentation explains how to use jboss 4.0 - 4.3 in various ways, none is clear, but every approach tells you to first <strong>"exclude the Hibernate 5 classes from your application"</strong>.</p>
  
  <p>I'd like to know how to that before i proceed. 
  Currently after dropping the application in the standalone deployment folder and starting the server, I'm getting the following (cleaned-up/trimmed) messages in the log:</p>
  
  <pre><code>WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service MyEar.ear#my_unit'
  HHH000412: Hibernate Core {5.0.10.Final}
  HHH000206: hibernate.properties not found
  HHH000021: Bytecode provider name : javassist
  HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
  </code></pre>
  
  <p>and </p>
  
  <pre><code>HV000001: Hibernate Validator 5.2.4.Final
  </code></pre>
  
  <p><strong>It seems Hibernate 5 is used despite my exclusion above.<br>
  I should not be getting these messages. 
  What is missing/wrong?</strong></p>
  
  <p>The following is a description of my application:
  The structure is the following:</p>
  
  <pre><code>.ear
      lib
      META-INF
      web.war
          META-INF
          WEB-INF
             lib
                jar1.jar
                   META-INF
                jar1.jar
                   META-INF
      ejb1.jar
          META-INF
      ejb2.jar
          META-INF
  </code></pre>
  
  <p>I've created  a jboss-deployment-structure.xml file and placed it in all the META-INF folders in the tree (total of 6 places!). The .ear looks as advised to others with similar goal:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;jboss-deployment-structure&gt;
      &lt;deployment&gt;
          &lt;exclusions&gt;
              &lt;module name="org.hibernate" /&gt;
          &lt;/exclusions&gt;
      &lt;/deployment&gt;
  &lt;/jboss-deployment-structure&gt;
  </code></pre>