[jdom-interest] JDOMException when used in Oracle Java Stored Procedure.

Laurent Bihanic laurent.bihanic at atosorigin.com
Mon Apr 19 05:23:04 PDT 2004

Scott LaChance wrote:
> I'm trying to use JDOM in a Java Stored Procedure in Oracle 9i. I 
> compile the java code and then load it into Oracle using the loadjava 
> utility.
> 2. Loading the default Xerces-J version 2.5 (packages 5,6 and 7) above 
> gets me to the following error when running in SQL*Plus:
> org.jdom.JDOMException: Could not load default SAX parser: 
> org.apache.xerces.parsers.SAXParser: SAX2 driver class 
> org.apache.xerces.parsers.SAXParser does not implement XMLReader

This looks like a class loading issue : The XMLReader interface visible by 
your code is loaded by a different class loader than the one that loaded 
Xerces SAX parsers. The Java VM does not recognize 2 copies of the same class 
loaded by 2 different class loaders as the same class.


More information about the jdom-interest mailing list