[jdom-interest] OC4J & JDOM

Elliotte Rusty Harold elharo at metalab.unc.edu
Thu Oct 10 08:25:00 PDT 2002

At 11:59 AM +0000 10/8/02, ian beer wrote:
>hi all,
>am trying to use Jdom in my app which is running on oc4j, despite 
>setting the system property as described in jason hunters article, i 
>cannot instantiate a SAXBuilder object.
>can anyone help?????
>builder = new SAXBuilder("oracle.xml.parser.v2.SAXParser");
>doc=builder.build("C:\\java work\\logs\\Oct2002.xml");
>catch(Exception ex){
>this is the code i am trying but am getting the following exception
>org.jdom.JDOMException: SAX feature 
>'http://apache.org/xml/features/allow-java-e ncodings' not 
>recognized.: SAX feature 'http://apache.org/xml/features/allow-jav 
>a-encodings' not recognized.
>at org.jdom.input.SAXBuilder.build(SAXBuilder.java:323)

It looks like JDOM is relying on some Xerces specific properties.

Hmm, looking at the source code I don't see it doing that. Is it 
possible your code is setting the feature 
http://apache.org/xml/features/allow-java-encodings somewhere? If 
so,. you can't do that with the Oracle parser.

If not, are you using the latest code from CVS?

| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
|          XML in a  Nutshell, 2nd Edition (O'Reilly, 2002)          |
|              http://www.cafeconleche.org/books/xian2/              |
|  http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/  |
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |

More information about the jdom-interest mailing list