users@jersey.java.net

Re: [Jersey] Problem with jersey 0.9 and jetty

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 22 Aug 2008 22:46:21 +0200

Hi Reece,

The Spring-based unit tests use Jetty and return JAXB beans and they
are not failing so i do not know what might be wrong. Would it be
possible to send an example project i can test?

Here is a wild guess, what is the return value for the getSize method
of your MessageBodyWriter. If you do not know the size you should be
returning -1. Perhaps you are returning 0 ?

Paul.

On Aug 22, 2008, at 10:21 PM, Reece Garrett wrote:

> Hello,
>
> I am using Jetty web server and just upgraded to jersey 0.9. I am
> using my own json entity provider which was working with jersey 0.8
> but now that I've upgraded I get no response body. I get the right
> response code but not my entity representation. I've debugged and
> verified that when I call outputStream.write(representation.getBytes
> ()); that the representation is correct but it just doesn't make it
> into the response. I am using the spring-servlet. Any ideas?
>
> -Reece
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>