This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
The moose likes JBoss and the fly likes RESTful web services with JBoss 5.1.0: 405 Method not allowed on PUT ressource Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "RESTful web services with JBoss 5.1.0: 405 Method not allowed on PUT ressource" Watch "RESTful web services with JBoss 5.1.0: 405 Method not allowed on PUT ressource" New topic
Author

RESTful web services with JBoss 5.1.0: 405 Method not allowed on PUT ressource

Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 546

Hi,
I am playing around with Jersey implementation of the REST API, with JBoss 5.1.0 as a server.

I got some RESTful web services working but only for GET HTTP methods. I have tried PUT and POST, I get the same error : 405 Method not allowed

I have tried the most simple method ever :

I invoke it using the URL :
http://localhost:8085/MyWebApp/MAJ

I get the error :
405 Method not allowed

how come ? It works fine with the @GET method.
Is there a setting to modify in JBoss AS to make it work ?
It does not work with @PUT, @POST ...

Thanks for helping.


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 546

More information regarding my previous question:

I modified the web.xml file to allow any user to call the HTTP methods but it did not change anything :


Any idea ? Thanks
Maya sekar
Ranch Hand

Joined: Sep 22, 2011
Posts: 70
Hi,


I have the same problem. My GET Methods work fine but POST throws a 405 Method not allowed. Have you resolved it? Please do help......


Many thanks
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: RESTful web services with JBoss 5.1.0: 405 Method not allowed on PUT ressource
 
Similar Threads
regarding unsupported post method
(405) Method not allowed
Regarding Spring-WS
Error 405 with HttpUrlConnection when request web service
Invoking JAX-WS method from browser