Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JRE 1.4, JAXP, and XERCES vs CRIMSON - How is this possible?

843834Mar 25 2002 — edited Apr 7 2003
Windows W2K, I am using JDK1.4 and JAXP.

DocumentBuilderFactory.newInstance is returning an instance of org.apache.xerces.jaxp.DocumentBuilderImpl, which in turn allows me to do Schema validation and use org.apache.xml.serialize to output XML.

The question is, how is this possible? The default is supposed to be the Crimson packaged with the JDK/JRE.

- javax.xml.parsers.DocumentBuilderFactory is not defined
- I have no jaxp.properties file
- There is no xerces.jar in my classpath

Why/how is Java deciding to use xerces, and once it decides to use it, where on earth is it finding it?

I would like xerces to be the default so I don't have to distribute it with my application, but it isn't supposed to be.

What I am missing?

... Roger


Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 5 2003
Added on Mar 25 2002
5 comments
247 views