cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <bimargul...@gmail.com>
Subject Re: json message body reading
Date Fri, 29 Apr 2011 15:00:21 GMT
Because I found it in Tatu's doc :-)

I changed to using the spring config and now I'm better.

We don't seem to have a web page findable by google that lists all the
xml options of the spring config.

On Fri, Apr 29, 2011 at 10:55 AM, Sergey Beryozkin <sberyozkin@gmail.com> wrote:
> Why are you registering a provider that way ?
> Do you use CXFServlet ? Spring ?
>
> Cheers, Sergey
>
> On Fri, Apr 29, 2011 at 3:51 PM, Benson Margulies <bimargulies@gmail.com> wrote:
>>  Here's a little service.
>>
>> I get 2011-04-29 10:49:01,630 [http-64809-2] WARN
>> org.apache.cxf.jaxrs.utils.JAXRSUtils - No message body reader has
>> been found for request class SystemConfiguration, ContentType :
>> application/json.
>>
>> even though I have
>>
>> src/main/resources/META-INF/services/javax.ws.rs.ext.MessageBodyReader
>>
>> containing
>>
>> org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider
>>
>>
>>  @POST
>>    @Produces("application/json")
>>    @Consumes("application/json")
>>    @Path("/initial-configuration")
>>    public synchronized Response
>> initialConfiguration(SystemConfiguration config) {
>>        if (serviceState.isConfigured()) {
>>            return alreadyConfiguredError();
>>        }
>>        return doInitialConfiguration(config);
>>    }
>>
>
>
>
> --
> Sergey Beryozkin
>
> Application Integration Division of Talend
> http://sberyozkin.blogspot.com
>

Mime
View raw message