I'm trying Groovy for third time, and again, I've run into classloading problems.
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:
Caught: java.lang.LinkageError: loader constraint violation: loader (instance of ) previously initiated loading for a different type with name "org/w3c/dom/NamedNodeMap"
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.
Thanks.