users@jersey.java.net

Re: Jersey with Spring always giving 404 for subresources

From: Jason Erickson <jason_at_jasonerickson.com>
Date: Wed, 17 Nov 2010 12:32:04 -0800

One more thing: When I put a breakpoints in the getTestText() and getTimelineResource() methods below and debug, a request to /reports will break, but a request to /reports/testitem doesn't, implying that it never enters the getTimelineResource method.

On Nov 17, 2010, at 12:10 PM, Jason Erickson wrote:

>> @Path("testitem")
>> public TestItemResource getTimelinResource() {
>> return timelineResource;
>> }
>>
>> @GET
>> @Produces(MediaType.TEXT_PLAIN)
>> public String getTestText() {
>> return "Success!\n";
>> }