title: JBoss AS 7: Error when use xml-apis.jar
body: <p>I'm using anti-samy jar in my project. The class org.w3c.dom.Element is a dependency, and I found under xml-apis jar.</p>
  
  <p>But I'm getting this error when using the app: <strong>org.w3c.dom.Element from [Module "deployment.xxx.ear.antisamy-1.4.4.jar:main" from Service Module Loader]</strong></p>
  
  <p>I think that I have a classloader hell, but I can't find which module I need.</p>
  
  <p>Info: my app is distributed in EAR, anti-samy and xml-apis are located in root directory into my EAR. The class that I use is located into my EJB module, and in my MANIFEST file I have this classes.</p>
  
  <p>[solved]</p>
  
  <p><strong>My bad. I've added jars in the root of my EAR. So after I move jars to /lib directory of my EAR, all works fine.</strong></p>