eclipse-ee4j / jaxb-ri

Jaxb RI
https://eclipse-ee4j.github.io/jaxb-ri/
BSD 3-Clause "New" or "Revised" License
204 stars 111 forks source link

FpML to Java generation fails with xjc:simple #712

Open Tomas-Kraus opened 14 years ago

Tomas-Kraus 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]
Tomas-Kraus commented 6 years ago
Tomas-Kraus commented 14 years ago

@glassfishrobot Commented Reported by ashiand

Tomas-Kraus commented 14 years ago

@glassfishrobot Commented ashiand said: Please take a look

Tomas-Kraus commented 14 years ago

@glassfishrobot Commented ashiand said: Component should be xjc

Tomas-Kraus commented 14 years ago

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

Tomas-Kraus commented 14 years ago

@glassfishrobot Commented Was assigned to snajper

Tomas-Kraus commented 7 years ago

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