That's a strange one. Are you sure the binding used with the jar code is the same one you're using with the <include>? It looks like there's an abstract mapping in the <include> which was not in the binding used for the code in the jar.
I've added a check for this condition in the current code which should supply the details of what's different. Can you download the latest build jars from the Maven(1) repository, at http://jibx.sourceforge.net/maven/jibx/jars/ and give that a try (look for the 1.2.2-SNAPSHOT jars)? Thanks, - Dennis Dennis M. Sosnoski XML and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Josh L wrote: > Thanks for the reply, Dennis. I made the changes you suggested to my > bindings.xml, that seems to have fixed the previous issue but now I am > receiving another error: > > [java] Running binding compiler version jibx_1_2_1 > [java] Error running binding compiler > [java] java.lang.ArrayIndexOutOfBoundsException: -2147483648 > [java] at > org.jibx.binding.def.PrecompiledBinding.<init>(PrecompiledBinding.java:125) > [java] at > org.jibx.binding.def.PrecompiledAbstractMapping.<init>(PrecompiledAbstractMapping.java:92) > [java] at > org.jibx.binding.def.BindingBuilder.unmarshalPrecompiledMappings(BindingBuilder.java:1925) > [java] at > org.jibx.binding.def.BindingBuilder.unmarshalInclude(BindingBuilder.java:2036) > [java] at > org.jibx.binding.def.BindingBuilder.unmarshalBindingDefinition(BindingBuilder.java:2108) > [java] at org.jibx.binding.Utility.loadBinding(Utility.java:320) > [java] at org.jibx.binding.Utility.loadFileBinding(Utility.java:437) > [java] at org.jibx.binding.Compile.compile(Compile.java:217) > [java] at org.jibx.binding.Compile.compile(Compile.java:184) > [java] at org.jibx.binding.Compile.main(Compile.java:379) > > And here is my updated binding.xml: > > <binding xmlns:tns0="http://accenture.com/apsp/domain" > xmlns:ns0="http://accenture.com/apsp/integration/CustomerService" > name="binding" package="com.accenture.apsp.domain" force-classes="true" > add-constructors="true"> > <namespace uri="http://accenture.com/apsp/domain" default="elements"/> > <namespace uri="http://accenture.com/apsp/integration/CustomerService" > prefix="ns0"/> > <namespace uri="http://accenture.com/apsp/domain" prefix="tns0"/> > > <include > path="file:///D:/Projects/APSP_integration/CrossJarDependency/gen/person-binding.xml" > precompiled="true"/> > <mapping abstract="true" type-name="customer" > class="com.accenture.apsp.domain.Customer" > xmlns:tns1="http://accenture.com/apsp/crossjardepend" > > <namespace uri="http://accenture.com/apsp/crossjardepend" > default="elements" prefix="tns1"/> > <structure type="com.accenture.apsp.crossjardepend.Person" > map-as="tns1:Person" /> > <value style="element" name="firstName" field="firstName" > usage="optional"/> > <value style="element" name="lastName" field="LastName" > usage="optional"/> > <value style="element" name="phone" field="phone" usage="optional"/> > </mapping> > </binding> > > Thanks again for your assistance! > > - Josh > > > DSosnoski wrote: > >> Hi Josh, >> >> The problem here is that your binding.xml doesn't just reference the >> binding defined for Person in person-binding.xml - it creates a new >> binding for Person, in the form of the embedded <structure >> type="com.mycompany.apsp.crossjardepend.Person">. To use the precompiled >> binding version, change this to <structure >> type="com.mycompany.apsp.crossjardepend.Person" map-as="tns1:person"/>, >> where tns1 is defined as "http://accenture.com/apsp/crossjardepend". >> >> - Dennis >> >> >> > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users