Just a cross-check: If you are using Jersey implementation of JAX-RS, verify if u have the following jars in the lib directory under web-inf folder?
Suggestion: I don't use PUT, POST, DELETE at all. I do all the operations using GET method only. That makes my coding more easy. Try changing that if it is possible.
Coming to the problem, this is not JBoss AS settings problem. It seems that you don't have resources on the requested URI. Make sure that the resources are available.
If your URI is pointing to a particular resource (say a database object, first go and check if it exists). DELETE operation on unavailable resource gives that 405 error.
Also make sure that your database connection is NOT closed while you are calling those methods (PUT and DELETE). (You can Log the sql connection in the methods where you have your PUT and DELETE methods.)
this message you get is created by your stack or let me explain it on a example:
You can create a plain HttpServlet which has doPost() and doGet()-methods. Calling a POST or a GET would call these methods. When you would call DELETE or PUT it would result in the same message as you mentioned. The same applies to RESTful resources. When you have a resource annotated with @GET and an other method with @POST so GET and POST calls will go though, but only these.
So you should check your REST impl, because there lies the solution. If you like, just post some code, perhaps i could help.
@Venkat: Just changing the impl to use GET for updating REST resouces is not the right way.
You are right. That wasn't a solution. It was just a "suggestion". It always made my coding easy. May be it's my perspective. Thanks for your ideas.
If you are facing the same issue post your code snippets if you think it is okay. I suggest you to check the availability of the resources on those URIs once again.