Hi On Fri, Apr 29, 2011 at 4:00 PM, Benson Margulies <[email protected]> wrote: > Because I found it in Tatu's doc :-) >
May be Jersey checks the service extensions, not sure. Do we want to support it ? Not sure. We'd need to check resource class jars/bundles and in case of dynamic subresources - do it dynamically. It's similar to auto discovery in that you can't configure them, on per-endpoint basis if needed; the effort for explicitly registering providers gets compensated by the fact one does not have to create those service extensions and it makes the registration process much more flexible. Supporting auto-discovery will probably be needed for EJB integration work. As far as I recall it's disabled by default in at least one 3rd party JAX-RS impl that I know of. > 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. > You can also use CXFNonSpringJAXRSServlet and submit a provider class name with 'jaxrs.providers' servlet parameter Cheers, Sergey > 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 >> > -- Sergey Beryozkin Application Integration Division of Talend http://sberyozkin.blogspot.com
