users@jaxb.java.net

Error occurs during binding under new release of JAXB 2.1.3

From: Peizhao Hu <peizhao_at_itee.uq.edu.au>
Date: Wed, 18 Apr 2007 02:20:31 +1000

Hi All,

please see attached schema, full set of schema of SensorML can be found:
http://vast.uah.edu/SensorML/version1.0/SensorML_schema_V1.0_pre-approval.zip


Detail Error log:

phu_at_phu-mac:~/programming/SensorML_examples/SensorMLV1.0/sweCommon/1.0.0$
xjc.sh positionTypes.xsd
parsing a schema...
Exception in thread "main" java.lang.NoSuchMethodError:
com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>([Ljava/lang/Class;Ljava/util/Collection;Ljava/util/Map;Ljava/lang/String;ZLcom/sun/xml/bind/v2/model/annotation/RuntimeAnnotationReader;ZZ)V
        at
com.sun.tools.xjc.reader.xmlschema.bindinfo.BindInfo.getJAXBContext(BindInfo.java:316)
        at
com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserFactoryImpl$1.<init>(AnnotationParserFactoryImpl.java:63)
        at
com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserFactoryImpl.create(AnnotationParserFactoryImpl.java:62)
        at
com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.createAnnotationParser(NGCCRuntimeEx.java:323)
        at
com.sun.xml.xsom.impl.parser.state.annotation.action0(annotation.java:48)
        at
com.sun.xml.xsom.impl.parser.state.annotation.enterElement(annotation.java:73)
        at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
        at
com.sun.xml.xsom.impl.parser.state.NGCCHandler.spawnChildFromEnterElement(NGCCHandler.java:74)
        at
com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:294)
        at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
        at
com.sun.xml.xsom.impl.parser.state.NGCCHandler.revertToParentFromEnterElement(NGCCHandler.java:111)
        at
com.sun.xml.xsom.impl.parser.state.foreignAttributes.enterElement(foreignAttributes.java:50)
        at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
        at
com.sun.xml.xsom.impl.parser.state.NGCCHandler.spawnChildFromEnterElement(NGCCHandler.java:74)
        at
com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:200)
        at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
        at
com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:250)
        at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
        at
com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:238)
        at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
        at
com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:222)
        at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
        at
com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:258)
        at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
        at
com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:270)
        at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.startElement(NGCCRuntime.java:219)
        at
org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
        at
com.sun.tools.xjc.util.SubtreeCutter.startElement(SubtreeCutter.java:68)
        at
com.sun.tools.xjc.reader.ExtensionBindingChecker.startElement(ExtensionBindingChecker.java:128)
        at
org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
        at
com.sun.tools.xjc.reader.xmlschema.parser.IncorrectNamespaceURIChecker.startElement(IncorrectNamespaceURIChecker.java:97)
        at
org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
        at
com.sun.tools.xjc.reader.xmlschema.parser.CustomizationContextChecker.startElement(CustomizationContextChecker.java:172)
        at
org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
        at
com.sun.tools.xjc.ModelLoader$SpeculationChecker.startElement(ModelLoader.java:439)
        at
org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
        at
com.sun.tools.xjc.reader.internalizer.VersionChecker.startElement(VersionChecker.java:82)
        at
org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
        at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2740)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
        at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
        at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
        at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
        at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333)
        at com.sun.xml.xsom.parser.JAXPParser.parse(JAXPParser.java:79)
        at com.sun.tools.xjc.ModelLoader$2.parse(ModelLoader.java:463)
        at
com.sun.tools.xjc.ModelLoader$XMLSchemaParser.parse(ModelLoader.java:246)
        at
com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:301)
        at
com.sun.xml.xsom.impl.parser.ParserContext.parse(ParserContext.java:88)
        at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:147)
        at
com.sun.tools.xjc.ModelLoader.createXSOMSpeculative(ModelLoader.java:480)
        at com.sun.tools.xjc.ModelLoader.loadXMLSchema(ModelLoader.java:350)
        at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:151)
        at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:97)
        at com.sun.tools.xjc.Driver.run(Driver.java:293)
        at com.sun.tools.xjc.Driver.run(Driver.java:174)
        at com.sun.tools.xjc.Driver._main(Driver.java:99)
        at com.sun.tools.xjc.Driver.access$000(Driver.java:57)
        at com.sun.tools.xjc.Driver$1.run(Driver.java:79)

-- 
regards;
Peizhao


phu_at_phu-mac:~/programming/SensorML_examples/SensorMLV1.0/sweCommon/1.0.0$ xjc.sh positionTypes.xsd
parsing a schema...
Exception in thread "main" java.lang.NoSuchMethodError: com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>([Ljava/lang/Class;Ljava/util/Collection;Ljava/util/Map;Ljava/lang/String;ZLcom/sun/xml/bind/v2/model/annotation/RuntimeAnnotationReader;ZZ)V
        at com.sun.tools.xjc.reader.xmlschema.bindinfo.BindInfo.getJAXBContext(BindInfo.java:316)
        at com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserFactoryImpl$1.<init>(AnnotationParserFactoryImpl.java:63)
        at com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserFactoryImpl.create(AnnotationParserFactoryImpl.java:62)
        at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.createAnnotationParser(NGCCRuntimeEx.java:323)
        at com.sun.xml.xsom.impl.parser.state.annotation.action0(annotation.java:48)
        at com.sun.xml.xsom.impl.parser.state.annotation.enterElement(annotation.java:73)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
        at com.sun.xml.xsom.impl.parser.state.NGCCHandler.spawnChildFromEnterElement(NGCCHandler.java:74)
        at com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:294)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
        at com.sun.xml.xsom.impl.parser.state.NGCCHandler.revertToParentFromEnterElement(NGCCHandler.java:111)
        at com.sun.xml.xsom.impl.parser.state.foreignAttributes.enterElement(foreignAttributes.java:50)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
        at com.sun.xml.xsom.impl.parser.state.NGCCHandler.spawnChildFromEnterElement(NGCCHandler.java:74)
        at com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:200)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
        at com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:250)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
        at com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:238)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
        at com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:222)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
        at com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:258)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
        at com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:270)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.startElement(NGCCRuntime.java:219)
        at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
        at com.sun.tools.xjc.util.SubtreeCutter.startElement(SubtreeCutter.java:68)
        at com.sun.tools.xjc.reader.ExtensionBindingChecker.startElement(ExtensionBindingChecker.java:128)
        at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
        at com.sun.tools.xjc.reader.xmlschema.parser.IncorrectNamespaceURIChecker.startElement(IncorrectNamespaceURIChecker.java:97)
        at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
        at com.sun.tools.xjc.reader.xmlschema.parser.CustomizationContextChecker.startElement(CustomizationContextChecker.java:172)
        at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
        at com.sun.tools.xjc.ModelLoader$SpeculationChecker.startElement(ModelLoader.java:439)
        at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
        at com.sun.tools.xjc.reader.internalizer.VersionChecker.startElement(VersionChecker.java:82)
        at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2740)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
        at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333)
        at com.sun.xml.xsom.parser.JAXPParser.parse(JAXPParser.java:79)
        at com.sun.tools.xjc.ModelLoader$2.parse(ModelLoader.java:463)
        at com.sun.tools.xjc.ModelLoader$XMLSchemaParser.parse(ModelLoader.java:246)
        at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:301)
        at com.sun.xml.xsom.impl.parser.ParserContext.parse(ParserContext.java:88)
        at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:147)
        at com.sun.tools.xjc.ModelLoader.createXSOMSpeculative(ModelLoader.java:480)
        at com.sun.tools.xjc.ModelLoader.loadXMLSchema(ModelLoader.java:350)
        at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:151)
        at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:97)
        at com.sun.tools.xjc.Driver.run(Driver.java:293)
        at com.sun.tools.xjc.Driver.run(Driver.java:174)
        at com.sun.tools.xjc.Driver._main(Driver.java:99)
        at com.sun.tools.xjc.Driver.access$000(Driver.java:57)
        at com.sun.tools.xjc.Driver$1.run(Driver.java:79)