[jdom-interest] Error validating schema - can't find xerces parser

lanikfs at cox.net lanikfs at cox.net
Thu Jul 10 08:21:16 PDT 2003


Thanks John and Sanjeev.

I have confirmed that the parser class is indeed in the classpath.  I even tried explicitly including the class-file in the .jar file that the application was deployed to.  I've made sure that there is no other instance of the class in the classpath.

I've seen before where the compiler won't pull in a class if it's not explicitly instantiated somewhere in the code - which I've made sure to do and that compiles and runs just fine.  Therefore, I've confirmed that at least the compiler and runtime can find it that way.  It seems it's only the SAXBuilder and something about the way it's looking up the class.

From: John Jefferson <surfer97301 at yahoo.com>
Date: 2003/07/09 Wed PM 08:53:52 EDT
To: lanikfs at cox.net,  jdom-interest at jdom.org
Subject: Re: [jdom-interest] Error validating schema - can't find xerces parser


I am not familar with Oracle JDeveloper but it sounds
like the xerces jar is not in your classpath at
runtime or perhaps you have multiple
org.apache.xerces.parsers.SAXParser classes in your
classpath and an older invalid one is obsuring the
relevant one. 


--- lanikfs at cox.net wrote:
> I'll probably kick myself once I find out what I'm
> doing wrong but I need some help.
> 
> I'm using JDOM to validate against a schema and I'm
> specifying the xerces parser in the SAXBuilder
> constructor.
> 
> I have the latest xerces lib.  I'm using Oracle
> JDeveloper and am including it in the library list.
> 
> At runtime, when the SAXBuilder constructor is
> called, I keep getting an error message saying:
> 
> Could not load org.apache.xerces.parsers.SAXParser:
> SAX2 driver class
> org.apache.xerces.parsers.SAXParser not found:
> org.apache.xerces.parsers.SAXParser
> 
> Is there something I'm missing?  Has anyone else run
> into this problem before?
> 
> _______________________________________________
> To control your jdom-interest membership:
>
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com





More information about the jdom-interest mailing list