title: JaxB property value is already defined. Use &lt;jaxb:property> to resolve this conflict
body: <p>I am using the following xsd schema file to generate java classes</p>
  <pre><code>&lt;xsd:complexType name=&quot;Instruction&quot;&gt;
  &lt;xsd:choice&gt;
      &lt;xsd:sequence&gt;
          &lt;xsd:element name=&quot;InstructionIndicator&quot; type=&quot;InstructionIndicator&quot;&gt;
              &lt;xsd:annotation&gt;
                  &lt;xsd:documentation&gt;some text&lt;/xsd:documentation&gt;
              &lt;/xsd:annotation&gt;
          &lt;/xsd:element&gt;
          &lt;xsd:sequence minOccurs=&quot;0&quot; maxOccurs=&quot;49&quot;&gt;
              &lt;xsd:element name=&quot;MultipleTimingModifier&quot; type=&quot;ANDOR&quot;
                  minOccurs=&quot;0&quot;&gt;
                  &lt;xsd:annotation&gt;
                      &lt;xsd:documentation&gt;some text&lt;/xsd:documentation&gt;
                  &lt;/xsd:annotation&gt;
              &lt;/xsd:element&gt;
              &lt;xsd:element name=&quot;TimingAndDuration&quot; type=&quot;TimingAndDuration&quot; /&gt;
          &lt;/xsd:sequence&gt;
      &lt;/xsd:sequence&gt;
      &lt;xsd:sequence&gt;
          &lt;xsd:choice&gt;
              &lt;xsd:element name=&quot;AdministrationIndicator&quot; type=&quot;AdministrationIndicator&quot;&gt;
                  &lt;xsd:annotation&gt;
                      &lt;xsd:documentation&gt;some text&lt;/xsd:documentation&gt;
                  &lt;/xsd:annotation&gt;
              &lt;/xsd:element&gt;
              &lt;xsd:sequence&gt;
                  &lt;xsd:element name=&quot;DoseAdministration&quot; type=&quot;DoseAdministration&quot; /&gt;
                  &lt;xsd:element name=&quot;TimingAndDuration&quot; type=&quot;TimingAndDuration&quot;&gt;
                      &lt;xsd:annotation&gt;
                          &lt;xsd:documentation&gt;some text&lt;/xsd:documentation&gt;
                      &lt;/xsd:annotation&gt;
                  &lt;/xsd:element&gt;
                  &lt;xsd:sequence minOccurs=&quot;0&quot; maxOccurs=&quot;49&quot;&gt;
                      &lt;xsd:element name=&quot;MultipleTimingModifier&quot; type=&quot;ANDOR&quot;
                          minOccurs=&quot;0&quot;&gt;
                          &lt;xsd:annotation&gt;
                              &lt;xsd:documentation&gt;some text&lt;/xsd:documentation&gt;
                          &lt;/xsd:annotation&gt;
                      &lt;/xsd:element&gt;
                      &lt;xsd:element name=&quot;TimingAndDuration&quot; type=&quot;TimingAndDuration&quot; /&gt;
                  &lt;/xsd:sequence&gt;
              &lt;/xsd:sequence&gt;
          &lt;/xsd:choice&gt;
          &lt;xsd:sequence minOccurs=&quot;0&quot;&gt;
              &lt;xsd:element name=&quot;IndicationForUse&quot; type=&quot;Indication&quot;
                  maxOccurs=&quot;50&quot;&gt;
                  &lt;xsd:annotation&gt;
                      &lt;xsd:documentation&gt;some text&lt;/xsd:documentation&gt;
                  &lt;/xsd:annotation&gt;
              &lt;/xsd:element&gt;
              &lt;xsd:element name=&quot;IndicationClarifyingFreeText&quot; type=&quot;an1..255&quot;
                  minOccurs=&quot;0&quot; /&gt;
          &lt;/xsd:sequence&gt;
          &lt;xsd:element name=&quot;MaximumDoseRestriction&quot; type=&quot;MaximumDoseRestriction&quot;
              minOccurs=&quot;0&quot; maxOccurs=&quot;50&quot;&gt;
              &lt;xsd:annotation&gt;
                  &lt;xsd:documentation&gt;some text&lt;/xsd:documentation&gt;
              &lt;/xsd:annotation&gt;
          &lt;/xsd:element&gt;
      &lt;/xsd:sequence&gt;
  &lt;/xsd:choice&gt;
  </code></pre>
  <p>&lt;/xsd:complexType&gt;</p>
  <p>But processing this results in an error</p>
  <blockquote>
  <p>Property &quot;MultipleTimingModifierAndTimingAndDuration&quot; is already defined. Use &lt;jaxb:property&gt; to resolve this conflict.</p>
  </blockquote>
  <p>To resolve this i wrote a binding file with following content</p>
  <pre><code>&lt;jaxb:bindings xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;
  xmlns:jaxb=&quot;http://java.sun.com/xml/ns/jaxb&quot; xmlns:xjc=&quot;http://java.sun.com/xml/ns/jaxb/xjc&quot;
  jaxb:extensionBindingPrefixes=&quot;xjc&quot; version=&quot;2.0&quot;&gt;
  
  &lt;jaxb:bindings schemaLocation=&quot;structures.xsd&quot;
      node=&quot;//xs:complexType[@name='Instruction']/xs:choice[1]
      /xs:sequence[1]/xs:sequence/xs:element[@name='MultipleTimingModifier']&quot;&gt;
      &lt;jaxb:property name=&quot;MultipleTimingModifier1&quot; /&gt;
  &lt;/jaxb:bindings&gt;
  
  &lt;jaxb:bindings schemaLocation=&quot;structures.xsd&quot;
      node=&quot;//xs:complexType[@name='Instruction']/xs:choice
      /xs:sequence[1]/xs:sequence/xs:element[@name='TimingAndDuration']&quot;&gt;
      &lt;jaxb:property name=&quot;TimingAndDuration1&quot; /&gt;
  &lt;/jaxb:bindings&gt;
  </code></pre>
  <p>&lt;/jaxb:bindings&gt;</p>
  <p>after adding this binding file while generating Jaxb classes in elcipse the following error is produced</p>
  <blockquote>
  <p>compiler was unable to honor this property customization. It is attached to a wrong place, or its inconsistent with other bindings.</p>
  </blockquote>
  <p>the classes will successfully generate if maxoccurs=&quot;49&quot; constraint is removed from targeted sequence node</p>
  <p>Note:</p>
  <ul>
  <li>the schema is a combination of 5 different files and is of more then 2000 lines</li>
  <li>only the part in which error is produced is shared here</li>
  </ul>