title: java.lang.LinkageError trying to set up Canoo WebTest using Groovy in IntelliJ
body: <p>Okay, so I'm trying to set up a Canoo WebTest using Groovy in Intellij.</p>
  
  <p>As a simple start I used the example the give on their website, namely</p>
  
  <pre><code>import com.canoo.webtest.WebtestCase
  
  class SimpleTest extends WebtestCase {
    void testWebtestOnGoogle() {
      webtest("check that WebTest is Google's top 'WebTest' result") {
        invoke "http://www.google.com", description: "Go to Google (in English)"
        verifyTitle "Google"
        setInputField name: "q", value: "WebTest"
        clickButton "I'm Feeling Lucky"
        verifyTitle "Canoo WebTest"
  
      }
    }
  }
  </code></pre>
  
  <p>Whilst executing this code however, I get the following which containts a Linkage error which says something about different class objects. However, I'm not sure what the problem is or how I can resolve this. Any ideas?</p>
  
  <p>Regards </p>
  
  <pre><code>wt.defineTasks:
  Trying to override old definition of task retry
  
  wt.webtestMonitor:
       [echo] C:\Users\lputtema\Dropbox\GameMe999\out\production\GameMe999\webtest-resources/tools/WebTestMonitor.groovy
  
  wt.htmlReports.init:
      [mkdir] Created dir: C:\Users\lputtema\Dropbox\GameMe999\out\production\GameMe999\webtest-results\resources
       [copy] Copying 22 files to C:\Users\lputtema\Dropbox\GameMe999\out\production\GameMe999\webtest-results\resources
       [copy] Copying 1 file to C:\Users\lputtema\Dropbox\GameMe999\out\production\GameMe999\webtest-results
  Caught: : java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.xerces.dom.NodeImpl.getChildNodes()Lorg/w3c/dom/NodeList;" the class loader (instance of org/codehaus/groovy/tools/RootLoader) of the current class, org/apache/xerces/dom/NodeImpl, and the class loader (instance of &lt;bootloader&gt;) for interface org/w3c/dom/Node have different Class objects for the type getChildNodes used in the signature
  : java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.xerces.dom.NodeImpl.getChildNodes()Lorg/w3c/dom/NodeList;" the class loader (instance of org/codehaus/groovy/tools/RootLoader) of the current class, org/apache/xerces/dom/NodeImpl, and the class loader (instance of &lt;bootloader&gt;) for interface org/w3c/dom/Node have different Class objects for the type getChildNodes used in the signature
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:204)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      at com.canoo.webtest.groovy.WebTestBuilder.doInvokeMethod(WebTestBuilder.java:54)
      at com.canoo.webtest.WebtestCase.webtest(WebtestCase.groovy:105)
      at com.canoo.webtest.WebtestCase$webtest.callCurrent(Unknown Source)
      at WebTest.SimpleTest.testWebtestOnGoogle(SimpleTest.groovy:14)
      at WebTest.SimpleTest$testWebtestOnGoogle.call(Unknown Source)
      at WebTest.main.run(main.groovy:12)
      at com.intellij.rt.execution.application.AppMain.main(AppMain.java:115)
  Caused by: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.xerces.dom.NodeImpl.getChildNodes()Lorg/w3c/dom/NodeList;" the class loader (instance of org/codehaus/groovy/tools/RootLoader) of the current class, org/apache/xerces/dom/NodeImpl, and the class loader (instance of &lt;bootloader&gt;) for interface org/w3c/dom/Node have different Class objects for the type getChildNodes used in the signature
      at org.apache.xerces.parsers.AbstractDOMParser.startDocument(Unknown Source)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source)
      at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      at com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration.loadConfiguration(JavaScriptConfiguration.java:211)
      at com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration.loadConfiguration(JavaScriptConfiguration.java:185)
      at com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration.&lt;init&gt;(JavaScriptConfiguration.java:142)
      at com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration.getInstance(JavaScriptConfiguration.java:237)
      at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.&lt;init&gt;(JavaScriptEngine.java:116)
      at com.gargoylesoftware.htmlunit.WebClient.init(WebClient.java:219)
      at com.gargoylesoftware.htmlunit.WebClient.&lt;init&gt;(WebClient.java:193)
      at com.canoo.webtest.engine.Configuration.setupWebClient(Configuration.java:760)
      at com.canoo.webtest.engine.Configuration.createWebClient(Configuration.java:617)
      at com.canoo.webtest.engine.Configuration.setupWebClient(Configuration.java:180)
      at com.canoo.webtest.engine.Configuration.execute(Configuration.java:162)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      ... 11 more
  
  wt.htmlReports:
       [echo] Waiting for completion of background generation of single reports
       [echo] Generating WebTestOverview
  
  wt.openResultFile:
       [echo] Opening result file C:\Users\lputtema\Dropbox\GameMe999\out\production\GameMe999\webtest-results\index.html with cmd
  </code></pre>