Hi Dennis,

Can you please let me know if you think the change below would be :
1) a very large piece of work
2) a minor enhancement
3) something in between

Also can you please advise where the code is currently located?
The CVS repository referenced through sourceforge does not seem
to be available and I'd like to investigate this myself...

(I'm Karel's colleague, by the way, and this particular issue is still
preventing us from adopting pre-compiled binaries).

Thanks,
Alison

On 04/19/2009 08:25 PM, Dennis Sosnoski wrote:
> Hi Karel,
>
> I like the classpath:binding.xml path idea for precompiled bindings, and
> will see if I can easily add that. I'll also take a look at your maven
> precompiled bindings classloading fix for 1.2.2.
>
> Thanks,
>
>    - 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
>
>
>
> Karel Alfonso wrote:
>    
>> Hi everyone,
>>
>>    I'm working on a simple solution where I have two projects and one
>> reuses classes already bound (precompiled) in the other project. I'm
>> using JiBX version 1.2.1
>>
>>    Let's say I have a precompiled binding in projectA, projecta-binding.xml
>>
>>    <binding package="com.projecta">
>>        <mapping name="a" class="...A">
>>        ....
>>        </mapping>
>>    </binding>
>>
>>    Then projectB defines a binding that requires using class A from
>> projectA already compiled, projectb-binding.xml
>>
>>    <binding>
>>       <include path="projecta-binding.xml" precompiled="true" />
>>
>>       <mapping name="b" class="....B">
>>         <structure .... map-as="...A" />
>>       </mapping>
>>    </binding>
>>
>>    However when I do "mvn clean install" (using the 1.2.1 JiBX maven
>> plugin) I get the following error:
>>
>>    "Classloader conflict for binding 'projecta_binding' - factory does not
>> implement required interface"
>>
>>    The exception is thrown from BindingDirectory.getFactory() method. I've
>> checked the binding factory generated by JiBX does implement
>> IBindingFactory, so I'm assumming it is really a class loader issue but
>> I'm not doing anything fancy, just a "mvn clean install".
>>
>>    I'd appreciate any help or advice regarding the use of precompiled
>> binding as shown in this example.
>>
>>    Also, as a second suggestion, is it possible to include a precompiled
>> binding doing<include path="classpath:binding.xml"/>  ? in that way
>> other projects don't have to manually copy the precompiled binding
>> definition to the project directory.
>>
>>    Thanks in advance,
>>
>>    Karel
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> jibx-users mailing list
>> jibx-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jibx-users
>>
>>
>>      
> ------------------------------------------------------------------------------
> Stay on top of everything new and different, both inside and
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today.
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>    


------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to