Index: src/org/apache/xerces/parsers/DOMParser.java =================================================================== RCS file: /home/cvspublic/xml-xerces/java/src/org/apache/xerces/parsers/DOMParser.java,v retrieving revision 1.68 diff -u -r1.68 DOMParser.java --- src/org/apache/xerces/parsers/DOMParser.java 25 Mar 2003 17:15:11 -0000 1.68 +++ src/org/apache/xerces/parsers/DOMParser.java 12 Dec 2003 17:33:03 -0000 @@ -140,16 +140,33 @@ this(symbolTable, null); } // (SymbolTable) + private static XMLParserConfiguration getParserConfig() { // XXX added - jglick + Object o = ObjectFactory.createObject( + "org.apache.xerces.xni.parser.XMLParserConfiguration", + "org.apache.xerces.parsers.XML11Configuration" + ); + if (o instanceof XMLParserConfiguration) { + return (XMLParserConfiguration)o; + } else { + // something is wrong + Thread.dumpStack(); + System.err.println("Got object: " + o); + System.err.println(" class: " + o.getClass().getName()); + System.err.println(" loader: " + o.getClass().getClassLoader()); + System.err.println(" location: " + o.getClass().getProtectionDomain().getCodeSource().getLocation()); + System.err.println(" my loader: " + XMLParserConfiguration.class.getClassLoader()); + System.err.println(" location: " + XMLParserConfiguration.class.getProtectionDomain().getCodeSource().getLocation()); + return new XML11Configuration(); + } + } + /** * Constructs a DOM parser using the specified symbol table and * grammar pool. */ public DOMParser(SymbolTable symbolTable, XMLGrammarPool grammarPool) { - super((XMLParserConfiguration)ObjectFactory.createObject( - "org.apache.xerces.xni.parser.XMLParserConfiguration", - "org.apache.xerces.parsers.XML11Configuration" - )); + super(getParserConfig()); // set properties fConfiguration.addRecognizedProperties(RECOGNIZED_PROPERTIES);