I keep getting this
error while running the binding compiler
D:\JavaStuff\Jibx>java -jar
D:\apps\jibx\lib\jibx-bind.jar binding.xml
org.jibx.runtime.JiBXException: Mapping references require property definition a
t tag "structure"(line 11, col 36, in binding.xml)
at org.jibx.runtime.impl.UnmarshallingContext.throwStartTagException(Unm
arshallingContext.java:2725)
at org.jibx.binding.def.BindingBuilder.unmarshalStructure(BindingBuilder
..java:1371)
at org.jibx.binding.def.BindingBuilder.unmarshalStructureChildren(Bindin
gBuilder.java:835)
at org.jibx.binding.def.BindingBuilder.unmarshalMapping(BindingBuilder.j
ava:1531)
at org.jibx.binding.def.BindingBuilder.unmarshalMappings(BindingBuilder.
java:963)
at org.jibx.binding.def.BindingBuilder.unmarshalBindingDefinition(Bindin
gBuilder.java:1597)
at org.jibx.binding.Utility.loadBinding(Utility.java:228)
at org.jibx.binding.Utility.loadFileBinding(Utility.java:254)
at org.jibx.binding.Compile.compile(Compile.java:291)
at org.jibx.binding.Compile.main(Compile.java:367)
org.jibx.runtime.JiBXException: Mapping references require property definition a
t tag "structure"(line 11, col 36, in binding.xml)
at org.jibx.runtime.impl.UnmarshallingContext.throwStartTagException(Unm
arshallingContext.java:2725)
at org.jibx.binding.def.BindingBuilder.unmarshalStructure(BindingBuilder
..java:1371)
at org.jibx.binding.def.BindingBuilder.unmarshalStructureChildren(Bindin
gBuilder.java:835)
at org.jibx.binding.def.BindingBuilder.unmarshalMapping(BindingBuilder.j
ava:1531)
at org.jibx.binding.def.BindingBuilder.unmarshalMappings(BindingBuilder.
java:963)
at org.jibx.binding.def.BindingBuilder.unmarshalBindingDefinition(Bindin
gBuilder.java:1597)
at org.jibx.binding.Utility.loadBinding(Utility.java:228)
at org.jibx.binding.Utility.loadFileBinding(Utility.java:254)
at org.jibx.binding.Compile.compile(Compile.java:291)
at org.jibx.binding.Compile.main(Compile.java:367)
I have started
trimming down the schema but still no luck. Here is what I have (I have removed
all the attributes and stuff like that for debugging purposes but still no luck.
I have a lender and school types that derives from Institutions and has no other
attributes)
<binding>
<mapping name="CommonRecordCommonline" class="CommonRecordCommonline">
<value style="attribute" name="DocumentProcessCode" field="documentProcessCode"/>
</mapping>
<mapping name="CommonRecordCommonline" class="CommonRecordCommonline">
<value style="attribute" name="DocumentProcessCode" field="documentProcessCode"/>
</mapping>
<mapping class="Institution" abstract="true">
<value name="OPEID" field="opEDID"/>
</mapping>
<mapping name="Lender" class="Lender"
extends="Institution">
<structure map-as="Institution"/>
</mapping>
<mapping name="School" class="School" extends="Institution">
<structure map-as="Institution"/>
</mapping>
</binding>
<structure map-as="Institution"/>
</mapping>
<mapping name="School" class="School" extends="Institution">
<structure map-as="Institution"/>
</mapping>
</binding>
Any idea what's
going on?
Sushil
x4479
