Hi You need to set both JAXBElementProvider and JSONProvider - that should fix it Cheers. Sergey
On Thu, Aug 4, 2011 at 4:17 PM, swarupe04 <[email protected]> wrote: > Hi, > > I'm using CXF 2.4 and I was able to find that xml format works when I > defined the alternative (to avoid XmlSeeAlso) but fails with simillar error > for json type ?_type=json. > > JAXBException occurred : class com.axxx.yyy.Artist nor any of its super > class is known to this context.. > > <bean id="jaxb" class="org.apache.cxf.jaxrs.provider.JAXBElementProvider"> > <property name="singleJaxbContext" value="true"/> > <property name="extraClass"> > <list> > <value>com.xxx.yyy.Artist</value> > > > Is it missing the feature for json? > > > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/XmlSeeAlso-alternative-JaxbElementProvider-extraClass-doesn-t-work-for-json-serialization-tp4666684p4666684.html > Sent from the cxf-user mailing list archive at Nabble.com. > -- Sergey Beryozkin http://sberyozkin.blogspot.com Talend - http://www.talend.com
