No message body reader found for request class in apache CXF
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
But it throwing PropertyNotFoundException jaxbElementClassNames . I dont know how to do it. Please show me the way.
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.
0