xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject XMLReaderFactory/SAXParserFactory/DocumentBuilderFactory does not use getContextClassLoader
Date Fri, 11 May 2001 19:00:47 GMT
Hi All, 

XMLReaderFactory/SAXParserFactory/DocumentBuilderFactory all use Class.forName() directly.
This is
going to cause problems with JDK1.4 because JAXP classes are packaged with the JRE itself.
Switching to another parser using System Property or jaxp.properties will fail. Please correct
if am wrong.

We can fix the problem by trying Thread.currentThread().getContextClassLoader() to load the
and fall back to Class.forName() if it fails. This is the approach taken by Xalan's extension
loading mechanism. Right Scott?

What can we do? Any suggestions? Beta for JDK1.4 is not too far...


PS: http://www.javageeks.com/Papers/ClassForName/DynLoad.pdf

Davanum Srinivas, JNI-FAQ Manager

Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.

In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org

View raw message