title: How to use JPA2 on JBoss 5.x ? (or How to eliminate class loading isolation issue?)
body: <p>I would like JBoss to use only the dependencies located in my war file.
  Each time I deploy this war file, JBoss still uses its own jars.</p>
  
  <p>Here is the <code>jboss-web.xml</code> I use :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;jboss-web&gt;
      &lt;class-loading java2ClassLoadingCompliance="false"&gt;
          &lt;loader-repository&gt;
              my.package:loader=my-app.war
             &lt;loader-repository-config&gt;
                java2ParentDelegation=false
             &lt;/loader-repository-config&gt;
          &lt;/loader-repository&gt;
      &lt;/class-loading&gt;
  &lt;/jboss-web&gt;
  </code></pre>
  
  <p>and the <code>jboss-classloading.xml</code> :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;classloading 
      xmlns="urn:jboss:classloading:1.0"
      export-all="NON_EMPTY"
      import-all="true"
      parent-first="false"/&gt;
  </code></pre>
  
  <p><strong>JBoss 5.1.0.GA</strong></p>