users@jersey.java.net

Tomcat: response contains markup although not set by resource

From: Martin Grotzke <martin.grotzke_at_javakaffee.de>
Date: Mon, 17 Mar 2008 11:59:26 +0100

Hi,

I have a resource that returns this response:

Response.status( 409 ).build()

The method that returns this response is simply annotated with @POST and
the @Path, but not with any @ProduceMime.

The response that the client receives has the correct status, but the
body contains the markup of the 409 error page of tomcat, with
Content-Type "text/html".

With jetty this works as expected: the response does not contain a body.

Would you say this is an issue of tomcat or of jersey?

Cheers,
Martin