i just realized that i had to type "Content-Type" and not "ContentType"!
From: jeffsaremi_at_hotmail.com
To: users_at_jersey.java.net
Date: Mon, 14 Dec 2015 14:49:38 -0500
Subject: [Jersey] Re: Debugging Jersey
good catch. 405 was my mistake. I wanted to say 415
Here's the signature of the method:
@Path("parse") @POST @Consumes(MediaType.TEXT_PLAIN) @Produces(MediaType.TEXT_PLAIN) public String parse(String input, @Context HttpServletRequest request) { return input; }
Date: Mon, 14 Dec 2015 14:41:15 -0500
From: bbissett_at_gmail.com
To: users_at_jersey.java.net
Subject: [Jersey] Re: Debugging Jersey
On Mon, Dec 14, 2015 at 1:59 PM, jeff saremi <jeffsaremi_at_hotmail.com> wrote:
I keep getting 405's when I submit requests to my jersey-grizzly app
From your output, you're getting 415s, not 405s. You're passing in "ContentType: text/plain" -- does your endpoint understand that? For instance, in a @Consumes annotation?
I know that doesn't answer your actual question, but maybe that's the problem you're facing.
Cheers,
Bobby