We are using Jibx in one of our projects, to support schema versioning, and 
have 
about 100 binding files.
Please find below our binding file structures...

Air
     air_v1
     air_v2
     ....
     ....
hotel
     hotel_v1
     hotel_v2
     .....
    .....
vehicle
     vehicel_v1
     vehicle_v2
     .....
     .....
universal
     universal_v1
     universal_v2
     .....
     .....
rail
     rail_v1
     rail_v2
     ....
     .....
common
     common_v1
     common_v1_1
     ....
    ...
....
.....

We have common bindings to keep common mapping used by different products.... 
To 
reduce compile time and distribution archive size we are trying to use 
precompiled bindings. What we are trying is to have 


 Air binding...
<binding name="air_v10_0">
    <include path="../common/common_v7_0.xml" precompiled=”true”/>
    <include path="../air/air_v10_0.xml"/>
</binding>

Universal binding...
<binding name="universal_v10_0">
    <include path="../common/common_v9_0.xml" precompiled=”true”/>
    <include path="../universal/universal_v10_0.xml"/>
</binding>
<namespace uri="http://www.xyz.com/schema/universal_v10_0"; prefix="universal"/>
<namespace uri="http://www.xyz.com/schema/common_v9_0"; prefix="common" 
precompiled=”true”/>
<namespace uri="http://www.xyz.com/schema/rail_v6_0"; prefix="rail" 
precompiled=”true”/>
<namespace uri="http://www.xyz.com/schema/common_v9_0"; prefix="common_v9_0" 
precompiled=”true”/>

But, I'm unable to compile our bindings using precompiled attribute. Here are 
some of the errors I'm getting

1) [bind] Error: No mapping found for class 
com.test.gdsmodel.general.ResponseMessage; on mapping element at (line 2799, 
col 
61, in air_v10_0.xml
 com.test.gdsmodel.general.ResponseMessage mapping is defined in common and 
extended by another mapping in air_v_10. This error is coming for all mappings 
which are extended by other mappings in other files.

2) java.lang.IllegalStateException: Internal error - cannot modify class 
com.test.gdsmodel.PhoneNumber
 If I just change one common_vX to be precompiled, I'm getting this error back 
for other non-precompiled bindings. Does this mean that it binds to the object 
differently that it normally would?  What we eventually want is 
common_v2_0_PhoneNumber.class.

Please note: 
1) We are writing bindings manually in order to use existing models.
2) We are using Jibx version 1.2.2

Is there any open source project that we can point as an example?
Can't we use precompiled mappings which are extended by other mappings which 
are 
not in precompiled file?

Thanks in advance...
Ritwick


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to