• Post Reply Bookmark Topic Watch Topic
  • New Topic

jaxb

 
Paul Keohan
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is anybody using the beta version of this? I am trying to follow the examples provided but constantly get a NoSuchMethodError when referring to AbstractDOMParser.startElement(...). This is after typing in the xjc command. All classpaths are set up correctly, as far as I can see.
Thanks for any help.
Paul
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That has got to be a library version problem. Did you have an earlier JAXB installed on the same machine?
Bill
 
Paul Keohan
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I have the early access version on my machine. Should I remove this?
 
Paul Keohan
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the error I get.

Exception in thread "main" java.lang.NoSuchMethodError
at org.apache.xerces.parsers.AbstractDOMParser.startElement(AbstractDOMP
arser.java:959)
at org.apache.xerces.impl.xs.dom.DOMParser.startElement(DOMParser.java:1
70)
at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNames
paceBinder.java:877)
at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBi
nder.java:569)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(XMLDocumentFragmentScannerImpl.java:759)
at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanR
ootElementHook(XMLDocumentScannerImpl.java:957)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1544)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
LDocumentFragmentScannerImpl.java:329)
at org.apache.xerces.parsers.NonValidatingConfiguration.parse(NonValidat
ingConfiguration.java:480)
at org.apache.xerces.parsers.NonValidatingConfiguration.parse(NonValidat
ingConfiguration.java:536)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at org.apache.xerces.impl.xs.traversers.XSDHandler.getSchema(XSDHandler.
java:1353)
at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(XSDHandle
r.java:360)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.
java:490)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader
.java:474)
at org.apache.xerces.parsers.XMLGrammarPreparser.preparseGrammar(XMLGram
marPreparser.java:241)
at com.sun.tools.xjc.reader.xmlschema.SchemaConstraintChecker.check(Sche
maConstraintChecker.java:64)
at com.sun.tools.xjc.Driver.loadGrammar(Driver.java:400)
at com.sun.tools.xjc.Driver.run(Driver.java:268)
at com.sun.tools.xjc.Driver.main(Driver.java:88)
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would certainly remove any earlier versions of JAXB. This sort of XML parser library conflict seems to come up alot and is hard to track down.
Now that Java 1.4 comes with an XML parser library there are even more opportunities for confusion. Read the file in docs/tooldocs about how Java finds classes.
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!