I have been working on simple RESTFul Web Services lately, with jersey on Eclipse, Apache Tomcat Server v 6.0.32. I can get the GET Functions to work just fine. But when I try POST Methods, using the Post annotation and deploy it, I get the "method not allowed" msg. I can't seem to figure out why. Any idea on how I can get it to work?
Not sure what is specifically wrong based on the code and request supplied, but it may be a configuration problem. I remember getting this error before when I did not have the docroot base URI configured right and the URI hierarchy was one level deeper than I expected when implementing a Restbucks sample application.
You might want to check where the base URI is configured in the project.
Are you using transaction or any filter interceptor in your application. If not then please post your exact signature of method in resource layer, and how will you call it on your poster.
and if you are using transaction management with configuration then please check the methods type you allowed for it or if any interceptor then please check the interceptor configuration.
subject: How to Implement POST Method in RESTFul web services using Jersey