Project Set Up:
Project Domains contains all domain Object with No jibx configuration.
Class A {
List<A> list;
}
Project JibxTest contains jibx configuration and its contains Domains.jar
When we try configured the binding.xml in Project JibxTest as following:
<binding>
<mapping name="A" class="Domains.A" ordered="false">
<collection item-type="Domains.A" field="list" usage="optional" create- type="java.util.ArrayList"/>
</mapping>
</binding>
we are getting JIBX exception :
Error during code generation for file 'C:\JIBXTest/binding.xml' -
[bind] this may be due to an error in your binding or classpath, or to an error in the JiBX code ***
[bind] java.lang.IllegalStateException: Internal error - cannot modify class Domains.A loaded from C:\JIBXTest\lib\Domains.jar
When we copy the Domain.A class in to JibxTest project and modify the binding file. It works.