Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » SAXException
SAXException [message #187133] Fri, 30 January 2004 08:02 Go to next message
Eclipse UserFriend
Originally posted by: philipp.tiedt.de.ibm.com

Hi,

I tried to implement my own parser subclassing
org.xml.sax.helpers.DefaultHandler. I want to use it in a plugin. However,
when i invoke the parsing i get:

org.xml.sax.SAXException: System property org.xml.sax.driver not specified

My code:

xmlreader = XMLReaderFactory.createXMLReader();

xmlreader.setContentHandler(parser);
xmlreader.parse(source);

Any ideas what could be wrong ?

thx Philipp
Re: SAXException [message #187151 is a reply to message #187133] Fri, 30 January 2004 08:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dani.gueggs.net

What jdk ard you using? The sax parser to use is specified by a system
property. But as you can see in the error message it is not specified in
your case. However you could set the property manually....

see
http://java.sun.com/xml/jaxp/dist/1.0.1/docs/tutorial/index. html

hf,
dani

philipp.tiedt@de.ibm.com wrote:
> Hi,
>
> I tried to implement my own parser subclassing
> org.xml.sax.helpers.DefaultHandler. I want to use it in a plugin. However,
> when i invoke the parsing i get:
>
> org.xml.sax.SAXException: System property org.xml.sax.driver not specified
>
> My code:
>
> xmlreader = XMLReaderFactory.createXMLReader();
>
> xmlreader.setContentHandler(parser);
> xmlreader.parse(source);
>
> Any ideas what could be wrong ?
>
> thx Philipp
Re: SAXException [message #187159 is a reply to message #187151] Fri, 30 January 2004 08:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: philipp.tiedt.de.ibm.com

Dani,

I have tried both ibm 1.3.1 and sun 1.4.2

Also I have set the the driver like this System.setProperty("org.xml.sax.driver",
"org.apache.xerces.parsers.SAXParser");

But it wont work.
Re: SAXException [message #187299 is a reply to message #187159] Fri, 30 January 2004 12:01 Go to previous message
Eclipse UserFriend
Originally posted by: loemming.gmx.net

Okay i have worked out that problem.

Now i get a
java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser

I made my plugin depend on org.apache.xerces .
What else can I do ?

thx

<philipp.tiedt@de.ibm.com> schrieb im Newsbeitrag
news:bvdlim$coe$2@eclipse.org...
> Dani,
>
> I have tried both ibm 1.3.1 and sun 1.4.2
>
> Also I have set the the driver like this
System.setProperty("org.xml.sax.driver",
>
"org.apache.xerces.parsers.SAXParser");
>
> But it wont work.
Previous Topic:JVM Problem
Next Topic:[HOWTO] use Differencer, CompareConfiguration, ICompareInput, IStructureCreator, StructureDiffViewe
Goto Forum:
  


Current Time: Thu Jul 03 08:00:51 EDT 2025

Powered by FUDForum. Page generated in 0.49589 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top