Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Problem with xerces

Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to use xerces 2.3 but I'm getting a NoSuchMethodError when I run the samples provided in the xerces distribution.
This is the exact error that I'm getting:
Exception in thread "main" java.lang.NoSuchMethodError
at org.apache.xerces.util.DOMUtil.getLocalName(Unknown Source)
at org.apache.xerces.impl.xs.traversers.XSAttributeChecker.resolveNamesp
ace(Unknown Source)
at org.apache.xerces.impl.xs.traversers.XSAttributeChecker.checkAttribut
es(Unknown Source)
at org.apache.xerces.impl.xs.traversers.XSAttributeChecker.checkAttribut
es(Unknown Source)
at org.apache.xerces.impl.xs.traversers.XSDocumentInfo.<init>(Unknown So
at org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknow
n Source)
at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown S
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknow
n Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unkno
wn Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Sou
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unkn
own Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.s
canRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at sax.Counter.main(Unknown Source)
I've added the xml-apis.jar, xmlParserAPIs.jar and xercesImpl.jar.
Could someone please tell me where I'm going wrong?
Any help would be *greatly* appreciated.
Thanks and regards,
moose poop looks like football shaped elk poop. About the size of this tiny ad:
We need your help - Coderanch server fundraiser
    Bookmark Topic Watch Topic
  • New Topic