On Sun, Jan 13, 2013 at 10:34 AM, Reto Bachmann-Gmür <[email protected]> wrote: > Hello > > When the accept header is set to > > Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 > > I get a 500 reponse and the following errr is logged. > > 2013-01-13 19:27:25,639 [931211918@qtp-341460182-40] ERROR > 931211918@qtp-341460182-40 > org.apache.wink.server.internal.handlers.FlushResultHandler - The system > could not find a javax.ws.rs.ext.MessageBodyWriter or a DataSourceProvider > class for the org.apache.clerezza.rdf.core.impl.util.PrivilegedGraphWrapper > type and text/html mediaType. Ensure that a > javax.ws.rs.ext.MessageBodyWriter exists in the JAX-RS application for the > type and media type specified. > > When I restrict the accept header to a format for which there is a > MessageBodyWriter things works correctly. > > Is this a known problem or should I investigate further and create an issue? > > Cheers, > Reto
I was trying to reproduce the error with the trunk code, I created a simple resource that @produces application/xml and then used a browser rest client to submit a request passing the accept header you mentioned and it worked ok. Could you double check with trunk code and maybe provide more details on how I could reproduce the issue. -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
