It sounds like a classpath problem, though I don't understand offhand
how it could create this particular error. The marshaller/unmarshaller
classes are created by the binding compile so they'll always implement
this interface. Having one fail this cast seems to say that you're
somehow getting the JiBX classes loaded by two separate classloaders.
- Dennis
Gilles Devaux wrote:
Hello,
I've writen a few JUnit tests for my application, If I run the
test integrated into Eclipse JUnit manager it works perferctly, but if
I run it as a standalone application I get the following error:
"Unable to create marshaller of class" (ClassCastException in
MarsahllingContext:887)
The line is:
IMarshaller m = (IMarshaller)clas.newInstance();
When I try to debug this, the clas object reprensents the same class
name (the JiBX generated class) in both case. So I don't really
understand what's going wrong.
Thanks for your help
Gilles
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users