No message body reader found for request class in apache CXF

dilipmathi

dilipmathi

@dilipmathi-IBnCNO Oct 26, 2024
I am trying to run the CXF-Rest Services in Jboss6. Application was deployed successfully , when i try to run i am getting following exception

No message body reader found for request class UpcLineOfBusinessEntity

Based on google i understand that we need to configure JAXB Databinding in CXF XML file. So i added the following line in my cxf.xml

<bean id="jaxbProvider" class="org.apache.cxf.jaxrs.provider.JAXBElementProvider"> <property name="jaxbElementClassNames"> <list> <value> com.tecnotree.upc.entities.UpcLineOfBusinessEntity </value> </list> </property </bean> 

But it throwing PropertyNotFoundException jaxbElementClassNames . I dont know how to do it. Please show me the way.

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • hackerboy

    hackerboy

    @hackerboy-TkORBf Feb 1, 2012

    Hey , i am also using apache CXF in my android project. Could you provide me some useful links of tutorials on the same ??