Error during build( tool-ant ) with JAXB2.0 upgraded version ( removed globalBindingstyle from script )



enter image description hereRecently I have upgraded to JAXB2.0 i.e.. I have replaced jaxb-api, jaxb-impl, jaxb-xjc to 2.2.11 and added jaxb-core.jar.


When I do build using ant( 1.9.2 ), I got error global Bindings [ERROR] xx: Attribute 'bindingStyle' is not allowed to appear in element 'jxb:globalBindings'...


I learnt that global bindings is no longer allowed in JAXB version >=2.0 ( Reference http://ift.tt/1GaDnPZ ).


I removed " jxb:globalBindings bindingStyle="modelGroupBinding" choiceContentProperty="true" " and rebuilded it.


I now got 7errors. One of error is error: cannot find symbol FieldOrMixinGroup fieldOrMixin = (FieldOrMixinGroup) iterator.next();


Any help is appreciated.


No comments:

Post a Comment