Dennis,

Thanks for your suggestion.  I included a maven copy goal in my
project build per your suggestion, so the domain jar is copied
successfully before my services jar is built.  However, I am unable to
specify the include element in my services project JiBX mappings, as I
don't have reference to the domain mapping file from my my services
project.  I tried completely omitting the include element in my
services mappings to see if that would work (which successfully
compiles), but I'm still getting the error below at runtime:

Caused by: org.jibx.runtime.JiBXException: Unable to access binding
information for class com.company.Item
Make sure the binding has been compiled

I am using Spring WS and am using
org.springframework.oxm.jibx.JibxMarshaller from within my services
project.  JiBX doesn't appear to be "seeing" the JiBX-enabled domain
class that's in the domain jar at runtime.  Any suggestions?

I appreciate your help.  By the way, I am very impressed with JiBX.
I'm struggling with this last bit, but once I get over this hump, I
think my client will love the fact that the JiBX solution requires
absolutlely no additional code (except for the minimal Spring required
classes) to enable web service access to our business services.  Great
job!

Thanks,

Keith

On Wed, May 20, 2009 at 6:47 PM, Dennis Sosnoski <d...@sosnoski.com> wrote:
> 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
>

------------------------------------------------------------------------------
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