File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes HTTP Status 405 - Restful webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "HTTP Status 405 - Restful webservice" Watch "HTTP Status 405 - Restful webservice" New topic

HTTP Status 405 - Restful webservice

Bharat Rajan

Joined: Aug 10, 2011
Posts: 1
Hi All,

I am using RESTful web service for my API.
I would pass a call as below:


this generates a security token for me which i will use for further services. "login" in the API call is my service command
I am using Tomcat 6 for this.

when i pass the wrong service command,
i will return an error message caught from my method. It is working as expected.

Issue I am facing is when i dont pass the service command in the URL like


I am getting the error as:

HTTP Status 405 -
type Status report
description The specified HTTP method is not allowed for the requested resource ().
Apache Tomcat/6.0.20

It is not even getting into my class, and so I am not able to debug.

Someone please help me understand the concept of why and where it is getting wrong. Thanks in advance
I agree. Here's the link:
subject: HTTP Status 405 - Restful webservice
It's not a secret anymore!