users@jersey.java.net

[Jersey] _at_PathParam and _at_DefaultValue confusion

From: <paul.brickell_at_evolved-intelligence.com>
Date: Tue, 20 Mar 2012 09:36:04 +0000 (GMT)

I have a simple service with a single GET method....

Class hass @Path("activation")

@GET
@Path("/activate/{id}")
@Produces("text/xml")
public Response activate(@DefaultValue("null") @PathParam("id") String
id)
{
...
}

If I browse to http://localhost/context/activation/activate/123 all is
well the service is invoked. If I browse to
http://localhost/context/activation/activate I get a 404. I was
expecting to get a call with the value "null". Did I miss something?