javaee / jaxb-v2

Other
211 stars 101 forks source link

FpML to Java generation fails with xjc:simple #712

Open glassfishrobot opened 14 years ago

glassfishrobot commented 14 years ago

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

to resolve this conflict. line 646 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 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">

#### Environment Operating System: Windows XP Platform: All #### Affected Versions [2.1.12]
glassfishrobot commented 14 years ago

Reported by ashiand

glassfishrobot commented 14 years ago

ashiand said: Please take a look

glassfishrobot commented 14 years ago

ashiand said: Component should be xjc

glassfishrobot commented 14 years ago

snajper said: simple is an experimental mode - adjusting priority and reasigning

glassfishrobot commented 14 years ago

Was assigned to snajper

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAXB-712