title: Groovy classloading problems - XML parsers, Ant, etc
body: <p>I'm trying Groovy for third time, and again, I've run into classloading problems.</p>
  
  <p>I have a script which uses HTMLUnit (so it has it on classpath with it's transitive deps).
  Groovy is on classpath as groovy-all.jar.
  When I run the script, I get this:</p>
  
  <p>Caught: java.lang.LinkageError: loader constraint violation: loader (instance of ) previously initiated loading for a different type with name "org/w3c/dom/NamedNodeMap"</p>
  
  <p>Do I need to cut HTMLUnit's deps away, or is there a way to tell Groovy to use what's on classpath? Some switch which would mean, "don't complain about duplicite class appearance" or such.</p>
  
  <p>Thanks.</p>