When trying to create classes from xsd, I got this error:
java.lang.IllegalArgumentException: Illegal class inheritance loop. Outer class OrderPropertyList may not subclass from inner class: OrderPropertyList
My xsd defines an element to group an unlimited element as follows:
<element minOccurs="0" name="orderPropertyList">
<complexType>
<sequence>
<element maxOccurs="unbounded" name="orderProperty" type="tns:orderProperty" />
</sequence>
</complexType>
</element>
And my binding binding follows as indicated on this page , but this does not work. Here is my binding:
<jaxb:bindings schemaLocation="../xsd/Schema.xsd" node="/xs:schema">
<jaxb:bindings node="//xs:element[@name='orderPropertyList']">
<jaxb:class name="OrderPropertyList"/>
</jaxb:bindings>
</jaxb:bindings>
My intention is to create a separate class for orderPropertyList, not the default, which creates an inner class inside the xsd root element.
I watched someone with the same intent here and here , but it does not work properly for me. :(
JAXB Version:
Specification-Version: 2.1
Implementation-Version: 2.1.8
Any help?
source
share