Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

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

Laurent Bihanic

2004-04-19

Replies:


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.

Laurent
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.