You put the xerces jars in the "endorsed overrides" directory. https://docs.oracle.com/javase/8/docs/technotes/guides/standards/
On Tue, Dec 5, 2017 at 1:18 PM, Mark Raynsford < list+org.apache.xer...@io7m.com> wrote: > Hello. > > Is it possible to use Xerces in a (modular) JDK 9 project? > > I'm trying to do SAX parsing with XSD schema validation, and in order > to resolve schema locations, I need to be able to set a resolver. I > can't do this using the JDK's included SAXParser as it appears to > conform to an older interface (1.4?) which doesn't provide a way to set > a resolver. > > If I attempt to use Xerces-J 2.11.0, however, I get a ton of > compilation errors because packages in Xerces conflict with those in > the JDK: > > Error:java: the unnamed module reads package org.w3c.dom.html from both > xercesImpl and xml.apis > Error:java: the unnamed module reads package javax.xml.datatype from both > xml.apis and java.xml > Error:java: the unnamed module reads package javax.xml.transform.dom from > both xml.apis and java.xml > Error:java: the unnamed module reads package org.w3c.dom.ranges from both > xml.apis and java.xml > Error:java: the unnamed module reads package javax.xml.transform from both > xml.apis and java.xml > Error:java: the unnamed module reads package org.xml.sax.ext from both > xml.apis and java.xml > Error:java: the unnamed module reads package javax.xml.namespace from both > xml.apis and java.xml > Error:java: the unnamed module reads package javax.xml from both xml.apis > and java.xml > Error:java: the unnamed module reads package org.w3c.dom.ls from both > xml.apis and java.xml > Error:java: the unnamed module reads package org.xml.sax.helpers from both > xml.apis and java.xml > Error:java: the unnamed module reads package javax.xml.validation from > both xml.apis and java.xml > Error:java: the unnamed module reads package org.w3c.dom from both > xml.apis and java.xml > Error:java: the unnamed module reads package javax.xml.transform.stax from > both xml.apis and java.xml > Error:java: the unnamed module reads package org.w3c.dom.bootstrap from > both xml.apis and java.xml > Error:java: the unnamed module reads package javax.xml.parsers from both > xml.apis and java.xml > Error:java: the unnamed module reads package javax.xml.stream.events from > both xml.apis and java.xml > Error:java: the unnamed module reads package org.w3c.dom.views from both > xml.apis and java.xml > Error:java: the unnamed module reads package javax.xml.xpath from both > xml.apis and java.xml > Error:java: the unnamed module reads package org.xml.sax from both > xml.apis and java.xml > Error:java: the unnamed module reads package org.w3c.dom.events from both > xml.apis and java.xml > Error:java: the unnamed module reads package javax.xml.transform.sax from > both xml.apis and java.xml > Error:java: the unnamed module reads package javax.xml.stream from both > xml.apis and java.xml > Error:java: the unnamed module reads package javax.xml.stream.util from > both xml.apis and java.xml > Error:java: the unnamed module reads package org.w3c.dom.traversal from > both xml.apis and java.xml > Error:java: the unnamed module reads package javax.xml.transform.stream > from both xml.apis and java.xml > > Is there any timeline for getting this working (if it's happening at > all)? > > -- > Mark Raynsford | http://www.io7m.com > >