Hi Keith,

You can use precompiled bindings for this purpose: 
http://jibx.sourceforge.net/binding/precompiled.html Just run the 
binding compiler for the domain classes and then jar up the modified 
classes, and include the resulting jar in the classpath when you run the 
binding compiler for the services classes.

  - Dennis

Dennis M. Sosnoski
SOA 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



Keith Bennett wrote:
> I am using Maven to build a separate business domain jar from the
> business services jar to abide by my client's layered architecture.  I
> would like to be able to reference a JiBX mapping for a domain class
> (that is managed in the domain project) from within a JiBX mapping for
> a business service class (that is managed in the business services
> project).  Is there a way to do this with JiBX?  In other words, from
> within a mapping file in one Maven project, I would like to reference
> a type that is managed in a separate Maven project (i.e., jar at
> runtime).  Below is the error I am currently getting.  If I copy all
> of my business domain classes into my business services project,
> everything works fine.  I only get this error when I separate the
> projects and the separate jars are built.
>
> 20:03:07,548 ERROR [STDERR]
> org.springframework.oxm.jibx.JibxMarshallingFailureException: JiBX
> marshalling exception: No marshal mapping defined for class
> com.company.businessobject.Item; nested exception is
> org.jibx.runtime.JiBXException: No marshal mapping defined for class
> com.company.businessobject.Item
>
> If anyone has done this, I would appreciate any advice you could share.
>
> Thanks,
>
> Keith
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables 
> unlimited royalty-free distribution of the report engine 
> for externally facing server and web deployment. 
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>   

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to