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 <[email protected]> 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 <[email protected]> > 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 >
