Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > Servlets
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Servlets section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 24th, 2004, 12:03 PM
Authorized User
Join Date: Jan 2004
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default HTTP Status 405 - HTTP method GET ....

HTTP Status 405 - HTTP method GET is not supported by this URL

I get the following error? what could cause such an error? the examples work fine. I have an old servlet, an another webapp application, that works fine, but whenver i try to to access my new servlet, it gives me that error. Where should i be looking for in order to solve this?

Reply With Quote
  #2 (permalink)  
Old January 25th, 2004, 04:50 PM
Authorized User
Join Date: Jan 2004
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts

Actually, i fixed the problem, and if u ever encouter this problem this is the reason:

In my doGet method I had like this:

public void doGet(HttpServletResponse res, HttpServletRequest req)...

when in fact the arguemtnts have to be in such that HttpServletRequest should come first and then HttpServlet res, so the correct signature is:

publiv void doGet(HttpServletRequest req, HttpServletRespons res).....

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTTP Status 403 jsp101 JSP Basics 1 October 16th, 2007 08:59 AM
Error HTTP 405 - Resource not allowed shefali Classic ASP Basics 2 February 20th, 2006 06:47 PM
error HTTP 405 - Resource not allowed hastikeyvan Dreamweaver (all versions) 1 January 12th, 2006 12:11 PM
HTTP 405 error treasacrowe Classic ASP Basics 5 October 21st, 2004 03:43 AM
status 405: Method not found viges VB.NET 2002/2003 Basics 1 May 18th, 2004 12:53 PM

All times are GMT -4. The time now is 06:11 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.