Sergey Beryozkin-2 wrote: > > sure, if you use JAXRSServerFactoryBean then it has a setter accepting a > list of providers. >
Thanks, Sergey. This is what I did, and it works perfectly: this.sfb = new JAXRSServerFactoryBean(); .. .. List providers = new ArrayList(); Object responseProvider = new ResponseProvider(); providers.add(responseProvider); this.sfb.setProviders(providers); .. .. this.sfb.create(); Cheers, Carlo -- View this message in context: http://www.nabble.com/Error-%3A-No-message-body-writer-found-for-response-class-%3A-ArrayList.----A-String-is-OK...-tp23141179p24646976.html Sent from the cxf-user mailing list archive at Nabble.com.
