You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Eric Ma <er...@db.com> on 2009/11/04 23:44:25 UTC
CXF and XmlJavaTypeAdapter annotation at the method level
Am using CXF 2.2.4, JAX-WS frontend, JAXB databinding.
I know with JAXB, I need to create XmlJavaTypeAdapters to handle Map types.
This works great when the annotation is at the field level. However, when I
annotated my SEI and implementation class at the method level, I am getting
CXF exception caused by javax.xml.bind.JAXBException: java.util.Map is not
known to this context.
BTW, the Adapter is a static inner class in the SEI.
Any ideas?
Eric
--
View this message in context: http://old.nabble.com/CXF-and-XmlJavaTypeAdapter-annotation-at-the-method-level-tp26206018p26206018.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: CXF and XmlJavaTypeAdapter annotation at the method level
Posted by Daniel Kulp <dk...@apache.org>.
On Wed November 4 2009 5:44:25 pm Eric Ma wrote:
> Am using CXF 2.2.4, JAX-WS frontend, JAXB databinding.
>
> I know with JAXB, I need to create XmlJavaTypeAdapters to handle Map types.
> This works great when the annotation is at the field level. However, when
> I annotated my SEI and implementation class at the method level, I am
> getting CXF exception caused by javax.xml.bind.JAXBException:
> java.util.Map is not known to this context.
>
Make sure you have asm 2.3.x or 3.x on the classpath. That's required for
using the @Xml* annotations on the method/params.
Dan
> BTW, the Adapter is a static inner class in the SEI.
>
> Any ideas?
>
> Eric
>
--
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog