This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
subject: HTTP Status 405 - Restful webservice
Similar Threads
HTTP Status 405 - HTTP method GET is not supported by this URL
RESTful web services with JBoss 5.1.0: 405 Method not allowed on PUT ressource
http://localhost:8085 is giving page not found error when Tomcat is running
Core JSF by Geary & Horstmann. Chapter 1: login example
Compiling servlet [was: HTTP Status 404 - Servlet Login is not available]