Open Tomas-Kraus opened 14 years ago
@glassfishrobot Commented Reported by ashiand
@glassfishrobot Commented ashiand said: Please take a look
@glassfishrobot Commented ashiand said: Component should be xjc
@glassfishrobot Commented snajper said: simple is an experimental mode - adjusting priority and reasigning
@glassfishrobot Commented Was assigned to snajper
@glassfishrobot Commented This issue was imported from java.net JIRA JAXB-712
I'm using JAXB 2.1.12 and FpML 4.6 final.
I can generate classes using xjc wit no options:
C:\docs\jaxb-ri-20090708\bin>xjc C:\docs\fpml-4-6-7-rec-1\xml parsing a schema... compiling a schema... org\w3_200009\xmldsig\CanonicalizationMethodType.java org\w3_200009\xmldsig\DSAKeyValueType.java org\w3_200009\xmldsig\DigestMethodType.java ....
But it fails when I use xjc:simple
C:\docs\jaxb-ri-20090708\bin>xjc -extension C:\docs\fpml-4-6-7-rec-1\xml -b simp le.xjb parsing a schema... [ERROR] Property "Currency" is already defined. Use to resolv
e this conflict.
line 383 of file:/C:/docs/fpml-4-6-7-rec-1/xml/fpml-mktenv-4-6.xsd
[ERROR] The following location is relevant to the above error line 2087 of file:/C:/docs/fpml-4-6-7-rec-1/xml/fpml-shared-4-6.xsd
[ERROR] Property "MarketDisruptionEvents" is already defined. Use <jaxb:prope rty> to resolve this conflict. line 631 of file:/C:/docs/fpml-4-6-7-rec-1/xml/fpml-com-4-6.xsd
[ERROR] The following location is relevant to the above error line 620 of file:/C:/docs/fpml-4-6-7-rec-1/xml/fpml-com-4-6.xsd
[ERROR] Property "DisruptionFallbacks" is already defined. Use <jaxb:property
[ERROR] The following location is relevant to the above error line 641 of file:/C:/docs/fpml-4-6-7-rec-1/xml/fpml-com-4-6.xsd
Failed to parse a schema.
==================================================== simple.xjb is the following
<jxb:bindings version="2.1" xmlns:jxb="http://java.sun.com/xml/ns/jaxb" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" jxb:extensionBindingPrefixes="xjc">