[jdom-interest] SAXBuilder Error

Andres March Andres at ehealthcontracts.com
Wed Jun 5 11:26:00 PDT 2002

please post a stack trace.

OFFICE: 510.581.5646 x205
MOBILE: 415.999.6735
FAX: 510.582.8013


The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer.

Thank you. eHealthContracts, Inc.

-----Original Message-----
From: stevechampeau at mindspring.com [mailto:stevechampeau at mindspring.com]
Sent: Wednesday, June 05, 2002 11:19 AM
To: jdom-interest at jdom.org
Subject: [jdom-interest] SAXBuilder Error

I have been working with JDOM for a while and have just encountered my first big problem. I am
using JDOM and Xerces in some custom Ant tasks, and receive an error when I attempt to run the following code in a custom Ant task from an Ant script:
         File file = new File();
         SAXBuilder builder = new SAXBuilder();
         Document doc = builder.build(new FileInputStream(file));
This gives the error: "org.jdom.JDOMException: Error in building:

This code works fine when I run it inside JBuilder. To see if it was a classpath issue, I stuck code in the Ant task that used reflection to instantiate an instance of "org.apache.xerces.parsers.SAXParser". That code ran fine, so it must be able to find that class.

Can anyone give me an idea what's going on here? If I cannot find a fix soon I will have to abandon JDOM for my project, which I do not want to do!

Steve C.
To control your jdom-interest membership:

More information about the jdom-interest mailing list