title: ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
body: <p>I am developing a GWT application in Eclipse and use jdom2 to read some custom xml property files.</p>
  
  <p>Following a recent update my application now fails with the above error when trying to read the xml file.  The relevant stack trace is:</p>
  
  <pre><code>org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
  org.apache.xerces.parsers.SAXParser.&lt;init&gt;(Unknown Source)
  org.apache.xerces.parsers.SAXParser.&lt;init&gt;(Unknown Source)
  org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.&lt;init&gt;(Unknown Source)
  org.apache.xerces.jaxp.SAXParserImpl.&lt;init&gt;(Unknown Source)
  org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source)
  org.jdom2.input.sax.XMLReaders.createXMLReader(XMLReaders.java:165)
  org.jdom2.input.SAXBuilder.createParser(SAXBuilder.java:871)
  org.jdom2.input.SAXBuilder.buildEngine(SAXBuilder.java:854)
  org.jdom2.input.SAXBuilder.getEngine(SAXBuilder.java:904)
  org.jdom2.input.SAXBuilder.build(SAXBuilder.java:1116)
  uk.co.platosys.db.jdbc.DatabaseProperties.loadProperties(DatabaseProperties.java:78)
  </code></pre>
  
  <p>Researching this problem suggests that the error can arise when incompatible versions of the xerces jars exist on the classpath. </p>
  
  <p>gwt-dev-2.6.1.jar contains the xerces packages and my hunch is that this latest version of gwt-dev has bundled a version that is incompatible. However jdom2.0.5, the current release, is released with the 2.11 version of Xerces which seems to be the latest released by Apache. Putting these jars on my classpath doesn't seem to resolve matters; I have previously been able to rely on the versions in gwt-dev. </p>
  
  <p>I am rather at my wits' end about this and considerably out of my comfort zone.  </p>