[jdom-interest] JDOMException when used in Oracle Java Stored Procedure.
Scott LaChance
slachance at cfl.rr.com
Sun Apr 18 10:58:34 PDT 2004
I have JDOM Beta 9.
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.
I have done loadjava on the following packages:
1. loadjava -resolve saxpath.jar
2. loadjava -resolve jaxen-jdom.jar
3. loadjava -resolve jdom.jar
4. loadjava -resolve dom.jar
5. loadjava -resolve xml-apis.jar
6. loadjava -resolve xmlParserAPIs.jar
7. loadjava -resolve xercesImpl.jar
I have the appropriate permissions granted using dbms_java.grant_permission.
I have two issues:
1. Using System.setProperty to change the SAX parser doesn't seem to work. I
get the default parser i all cases (with the following error).
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
at org.jdom.input.SAXBuilder.createParser(SAXBuilder.java:495)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:341)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:684)
at
com.lmco.imps.wfd.WfdUpdateDependencies.updateWfdDependencies(WfdUpdateDepen
dencies.java:92) Caused by: java.lang.ClassCastException
at
org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java)
at org.jdom.input.SAXBuilder.createParser(SAXBuilder.java:487)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:341)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:684)
at
com.lmco.imps.wfd.WfdUpdateDependencies.updateWfdDependencies(WfdUpdateDepen
dencies.java:92) Caused by: java.lang.ClassCastException
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory
.java)
at org.jdom.input.SAXBuilder.createParser(SAXBuilder.java:487)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:341)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:684)
at com.lmco.imps.wfd.WfdUpdateDependencies.updateWfdDependencies(
WfdUpdateDependencies.java:92) Error ORA-29532: Java call terminated by
uncaught Java exception: com.lmco.imps.system.ImpsSystemException: Could not
load default SAX parser:
org.apache.xerces.parsers.SAXParser: SAX2 driver class
org.apache.xerces.parsers.SAXParser does not implement XMLLReader
I reviewed the source for SAXParser and it extends the abstract class
AbstractSAXParser which does implements the interface XMLReader.
Any idea what the issue is?
Scott LaChance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20040418/3f720608/attachment.htm
More information about the jdom-interest
mailing list