But now it is complaining about arguments we are passing to the transformer which used to work. What we want to do is just reset this property so that things go back to the way there were before we added the Oracle jar on the classpath (and not need to update any code). Ideas?
In case you ever need this again, I found it with the following program (run this without the Oracle XDK JAR on the classpath)
The defaults are:
I had problems with Oracle's XDK too, so I know how frustrating this can be!
You have to put files in META-INF/services on the classpath that are specifically named like the factory interface names. For example, to override the DocumentBuilderFactory, you need a file called "javax.xml.parsers.DocumentBuilderFactory" and it has to have the text "com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl" in it (no spaces or newlines).
Keep in mind this is ONLY for Java 6 - Java 5 and 7 may be different. I kind of wish this were documented somewhere.