Apr 29th, 2011, 12:44 AM
problems with JiBX and DM
I have a problem using JiBX within Spring DM. I have a jibx runtime bundle and my client bundle that includes precompiled jibx classes. Versions do match because I packaged jibx runtime myself using the same (latest) version as for compiling.
However at runtime I get
JiBXException: Classloader conflict for binding factory 'foo.test.JiBX_bindingFactory' - factory does not implement required interface
I checked my client bundle - the class is there, I assume that it implements everything correctly because it was generated by JiBX compiler. When I digged into jibx code I found that it tries to perform some things on such a class via reflection and in case of any exception throws its own exception with this text.
Therefore I assume that the problem is that JiBX bundle does not see my bundle classes (that is quite expected as JiBX bundle knows nothing about my client bundle - it neither imports nor requires it). So the question is - what do I do in this case? Is there anyway to share my bundle's classes with an imported one (jibx).
Or maybe my assumption is wrong - then why the hack do I get that exception? =)