Hi Sergey,

Thanks for the info. I have followed th approach to return a new
JacksonJsonProvider within my Class decorated with @SpringBootApplication

@Bean
public JacksonJsonProvider Config() {
return new JacksonJsonProvider();
}

Regards,

Charles

On Mon, Mar 20, 2017 at 11:09 PM, Sergey Beryozkin [via CXF] <
[email protected]> wrote:

> Hi Charles
>
> You can return as a @Bean or use
> jaxrs.classes-scan
>
> http://cxf.apache.org/docs/springboot.html#SpringBoot-
> AdditionalConfiguration.1
>
> (JsrJsonpProvider works with the specific API, you probably want to try
> Jackson or some other JSON provider which can work with the beans)
>
> Cheers, Sergey
> On 20/03/17 21:29, cmoulliard wrote:
>
> > Hi,
> >
> > How can we register a JsonProvider for a Spring Boot application using
> the
> > CXF Starter in order to avoid this error
> >
> > No message body writer has been found for class
> > org.jboss.snowdrop.springboot.rest.cxf.service.Greeting
> >
> > for the class which contains the model of the class to be process as
> json
> > response result.
> >
> > I suppose that this provider should be injected
> > "org.apache.cxf.jaxrs.provider.jsrjsonp.JsrJsonpProvider"
> >
> > Regards
> >
> > Charles
> >
> >
> >
> >
> > --
> > View this message in context: http://cxf.547215.n5.nabble.
> com/No-message-body-writer-has-been-found-for-class-org-
> jboss-snowdrop-springboot-rest-cxf-service-Greetg-tp5778192.html
> > Sent from the cxf-user mailing list archive at Nabble.com.
> >
>
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://cxf.547215.n5.nabble.com/No-message-body-writer-
> has-been-found-for-class-org-jboss-snowdrop-springboot-
> rest-cxf-service-Greetg-tp5778192p5778195.html
> To unsubscribe from No message body writer has been found for class
> org.jboss.snowdrop.springboot.rest.cxf.service.Greeting, click here
> <http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5778192&code=Y2gwMDdtQGdtYWlsLmNvbXw1Nzc4MTkyfDg4NjE3MzMyOA==>
> .
> NAML
> <http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>



-- 
Charles Moulliard
Apache Committer & PMC / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io




--
View this message in context: 
http://cxf.547215.n5.nabble.com/No-message-body-writer-has-been-found-for-class-org-jboss-snowdrop-springboot-rest-cxf-service-Greetg-tp5778192p5778200.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to