Hi everybody,

I'm new to Xerces. Today I added xercesImpl.jar and the other jars to my 
Eclipse build path to validate an XML document against an XML schema in my 
application. But when I call newSchema() on a Schema instance, I get:

Exception in thread "main" java.lang.NoSuchMethodError: 
org.apache.xerces.impl.xs.XMLSchemaLoader: method 
loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V not found
                 at 
org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown 
Source)
                 at javax.xml.validation.SchemaFactory.newSchema(Unknown 
Source)
                 at javax.xml.validation.SchemaFactory.newSchema(Unknown 
Source)
                 at 
org.apache.uima.uima4jcr.RepositoryAnnotationService.<init>(RepositoryAnnotationService.java:80)
                 at 
org.apache.uima.uima4jcr.clt.JackHat.main(JackHat.java:80)

Inspecting xercesImpl.jar, I find that the method it doesn't find is 
actually there in the XMLSchemaLoader class.

Any ideas?

Thanks
- Kilian

Reply via email to