On Monday, July 25, 2011 9:43:10 AM snigs2081 wrote:
> Hi Glen,
> Ya, i did try searching and seems to be a very common problem. There were
> many queries but I didnt find how it was finally resolved.
> I did try using @XmlJavaTypeAdapter but that didnt help.
>
> Does my adapter class look ok?
The adapter looks fine. The issue is the "Object" type you are using for the
value of the Map. You need to tell JAXB all the various types that could go
in there.
You may be able to add:
@XmlSeeAlso({ String[].class })
to get it to know about the String[] stuff. That said, it would likely
produce better schema if you Adapter would specifically map the various values
to supported types as well.
Dan
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Marshalling-error-String-tp4629858p4631472.
> html Sent from the cxf-user mailing list archive at Nabble.com.
--
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com