Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8668297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:10:43+00:00 2026-06-12T18:10:43+00:00

I have been working through the GWT tutorials on Google’s developer site, and have

  • 0

I have been working through the GWT tutorials on Google’s developer site, and have gotten to the section on GWT RPC here. The gist of the problem is that I’ve followed the instructions on the tutorial carefully, and have encountered a problem when I run the code in development mode on Eclipse Juno. The error is: “Error 405 HTTP method GET is not supported by this URL”.

The environment I’m in is:

  • Eclipse Juno 4.2
  • Ubuntu 12.04 LTS (No significant updates recently.)
  • Using default GWT SDK (GWT – 2.4.0).
  • Using default GAE SDK (App Engine – 1.7.2).
  • Chrome Version 21.0.1180.89

Referencing the code in the sample, I’ve started focusing on the web.xml file and the servlet-mappings in there as a part of the problem. What I have in web.xml code is the following:

   <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">

    <web-app>

       <!-- Default page to serve -->
      <welcome-file-list>
        <welcome-file>StockWatcher.html</welcome-file>
      </welcome-file-list>

      <!-- Servlets -->
      <servlet>
        <servlet-name>stockPriceServiceImpl</servlet-name>
        <servlet-class>com.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl</servlet-class>
      </servlet>

      <servlet-mapping>
        <servlet-name>stockPriceServiceImpl</servlet-name>
        <url-pattern>/stockwatcher/stockPrices</url-pattern>
      </servlet-mapping>

  </web-app>

The good thing is that the server is finding the code, but somewhere between finding the code and rendering it, it fails.

I’ve researched this problem pretty thoroughly, and I have not found anything that seems to point to the cause of the problem. What I do know is the following:

  1. A better understanding of the HttpServlet class is required.
  2. GWT should be taking care of the doPost, and doGet implementations.

If anyone has any suggestions as to what the problem may be, I’m all ears. Or another interpretation of what the error means would be helpful to me and to anyone else having this problem.

EDIT:

I was able to resolve my problem, in part, thanks to Colin Alworth. The problem was how I was thinking about accessing the servlets. Going through the HTML page was indeed the correct way to access the application, and because I was not calling the method that initiates the AsyncCallback method (somehow I missed that), it appeared that the HTML page and the servlet were disconnected.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T18:10:44+00:00Added an answer on June 12, 2026 at 6:10 pm

    The StockPriceServlet should be extending RemoteServiceServlet, which is just for RPC calls, and thus does not support GET. Don’t direct your browser to that url, instead use the html files that are provided in the app. The actual url should be shown on the Dev Mode console. On the https://developers.google.com/web-toolkit/doc/latest/tutorial/gettingstarted tutorial, this is described in step 2 on https://developers.google.com/web-toolkit/doc/latest/tutorial/create – the url will be http://localhost:8888/StockWatcher.html or, more likely if using dev mode, http://localhost:8888/StockWatcher.html?gwt.codesvr=localhost:9997. From the web.xml, you don’t even need to list the html file itself:

       <!-- Default page to serve -->
      <welcome-file-list>
        <welcome-file>StockWatcher.html</welcome-file>
      </welcome-file-list>
    

    http://localhost:8888/?gwt.codesvr=localhost:9997 should suffice.

    Servlets aren’t always intended to serve up html, and this is one of those cases – the express purpose of this type of servlet is to be a way for the GWT client to interact with Java methods on the server, by passing objects back and forth. Check out https://developers.google.com/web-toolkit/doc/latest/tutorial/RPC for more details on how this servlet is intended to be used – only from within client code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working my way through the tutorials on learnpython.org and up to
I have been working through Microsoft's ASP.NET MVC tutorials, ending up at this page
I have been working with the google docs api found here: https://developers.google.com/google-apps/documents-list/#introduction This issue
I have been working through one of the NeHe tutorials (Lesson06) with texture mapping
I have been working through projects involving packages that do all the web design
I have been working through the tutorial adapting it to a project I want
I have been working with SQL Server as a Developer a while. One thing
I am new to cakephp and have been working through the Apress book Beginning
I was turned on to nstrees from another question, and have been working through
I'm new to cakephp so have just been working through the cookbook and am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.