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 8565967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:32:58+00:00 2026-06-11T17:32:58+00:00

iam working with gwt2.4 and iam trying to access a simple xml file with

  • 0

iam working with gwt2.4 and iam trying to access a simple xml file with the gwt requestbuilder.
iam using eclipse and the embedded jetty-server.

project structure:

myfooApp
war
person.xml

and iam using places and activities.

i dont know why but i get an 404 error when i try to access the xml file.

its a standart requestbuilder code.

RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, GWT.getModuleBaseURL()+"/person.xml");
try{
    builder.sendRequest(null, new RequestCallback() {
        public void onResponseReceived(Request request, Response response) {
            view.getLabel().setText(response.getText());
        }

        public void onError(Request request, Throwable exception) {
            view.getLabel().setText("There was an error! "+exception.getMessage());
        }
    });
}catch(RequestException e){
    view.getLabel().setText("Unable to build the request.");
}

i am not sure if this has something to do with the problem but GWT.getModuleBaseURL returns: 127.0.0. 1:88 88/myFooApp

but the correct URL is :
12 7.0.0.1:8888/myFooApp.html?gwt.codesvr=127.0.0.1:9 997#FileDisplayPlace:side2

what could be the reason for this problem? and how could it be solved.
thanks a lot for help.

  • 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-11T17:32:59+00:00Added an answer on June 11, 2026 at 5:32 pm

    GWT.getModuleBaseURL() returns the “folder” where GWT has generated the files (where the *.nocache.js and .cache. files live).

    If person.xml is a sibling of your HTML Host page (myFooApp.html), then use GWT.getHostPageBaseURL(). In your case, it’ll be http://127.0.0.1:8888.

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

Sidebar

Related Questions

Iam using netbeans 6.9 for PHP , the file i was working on corrupted
Iam working on a project which involves writing a Mork File (Mork is a
I am working on ubuntu OS,I have started working on pentaho-BI using eclipse.. Just
i am using a label <asp:Label ID=lblMessage runat=server Text= BorderStyle=Solid></asp:Label> in script part iam
iam trying to build an multihreading webservice. Single threading is working, in my main
I have a simple GWT project and I was trying to use the gwt-cal
Iam trying to create simple menu according to the book CCMenuItem . here is
hi iam currently working in simple amimation app in which i implement following code
I am working on GWT2.3 with Eclipse Ganymede version 3.4. While working with UIBinder
Iam working on an android app and using AChartEngine for charting. Everything is working

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.