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
me
if am wrong.

We can fix the problem by trying Thread.currentThread().getContextClassLoader() to load the
class
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...

Thanks,
dims

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

=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/

---------------------------------------------------------------------
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


Mime
View raw message