users@jaxb.java.net

[xjc] [ERROR] compiler was unable to honor this property customization.

From: Ajay Aggarwal <aaggarwal_at_covergence.com>
Date: Tue, 1 Apr 2008 17:41:42 -0400

Using JAXB2 xjc tool, I am getting following error (with jaxb1 it was
working fine):

 

      [xjc] [ERROR] compiler was unable to honor this property
customization. It is attached to a wrong place, or its inconsistent with
other bindings.

 

 

My bindings look like this

 

        <jxb:bindings node="//xs:choice/xs:element[@name='class']">

              <jxb:class name="Clazz"/>

              <jxb:property name="Clazz"/>

        </jxb:bindings>

 

 

And the schema fragment, where this binding applies and error occurs is
below:

 

     <xsd:complexType name="classType">

        <xsd:sequence>

            <xsd:choice maxOccurs="unbounded">

                <xsd:element name="class" type="classInstanceType"
minOccurs="0" maxOccurs="unbounded">

                    <!-- make sure that the properties have unique names
-->

                    <xsd:unique name="propertyNameConstraint">

                        <xsd:selector xpath="property"/>

                        <xsd:field xpath="@name"/>

                    </xsd:unique>

                </xsd:element>

                <xsd:element name="group" type="classGroupType"
minOccurs="0" maxOccurs="unbounded"/>

            </xsd:choice>

        </xsd:sequence>

    </xsd:complexType>

 

 

What am I doing wrong?

 

Thanks.