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

  • SEARCH
  • Home
  • 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 6345075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:45:13+00:00 2026-05-24T20:45:13+00:00

My application is working great in development mode (with GWT-RPC calls), however whenever I

  • 0

My application is working great in development mode (with GWT-RPC calls), however whenever I try to test it using production mode (by removing the ?gwt.codesvr=127.0.0.1:9997 part of the URL), it used to give me a blank page.

I manually checked the VoitureTourisme.html file and modified the voitureTourisme.nocache.js file’s path to a working one (this means that my Web.xml isn’t configured properly, right? then why does it work in dev mode?)

Now it looks like this
<script language="javascript" src="voitureTourisme/voitureTourisme.nocache.js"></script>
but it used to be

src="com.devsys.calculateur.voitureTourisme.VoitureTourisme/com.devsys.calculateur.voitureTourisme.VoitureTourisme.nocache.js"
when I first compiled.
Because I tried different variations and compiled a few times, I now got 2 module folders inside my war : “voitureTourisme” and the other with the full path as shown above.

I’m pretty sure I’m confusing how to properly configure the VoitureTourisme.gwt.xml and Web.XML files, because I wouldn’t have to manually correct the compiled html file if I did.
After I fixed it manually (which I shouldn’t have to do), my RPC calls showed a 404 error because they didn’t find my servlet for the service (bad url).

Hopefully you can show me what’s wrong and why with my configuration

Web.xml

<?xml version="1.0" encoding="utf-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
    <!-- TODO: Add <servlet> tags for each servlet here. -->
    <!-- TODO: Add <servlet-mapping> tags for each <servlet> here. -->
    <!-- TODO: Optionally add a <welcome-file-list> tag to display a welcome file. -->
     <!-- Servlets -->
  <servlet>
    <servlet-name>calculateurDataService</servlet-name>
    <servlet-class>com.devsys.calculateur.voitureTourisme.server.form.CalculateurDataServiceImpl</servlet-class>
  </servlet>

  <servlet-mapping>
    <servlet-name>calculateurDataService</servlet-name>
    <url-pattern>/com.devsys.calculateur.voitureTourisme.VoitureTourisme/calculateurDataService</url-pattern>
  </servlet-mapping>
</web-app>

VoitureTourisme.gwt.xml

<module>
    <inherits name="com.google.gwt.user.User"/>
    <inherits name="com.google.gwt.user.theme.standard.Standard"/>
    <inherits name="com.devsys.util.XmlUtil"/>
    <inherits name="com.devsys.util.UrlUtil"/>
    <inherits name="com.google.gwt.i18n.I18N"/>
    <entry-point class="com.devsys.calculateur.voitureTourisme.client.VoitureTourisme"/>
</module>

I also have my service interface using

@RemoteServiceRelativePath("calculateurDataService")

Is that correct? Should I use it?

  • 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-05-24T20:45:14+00:00Added an answer on May 24, 2026 at 8:45 pm

    i think the problem is module name related. Try adding this line of your gwt.xml before inherits begin:

    <module rename-to='voituretourisme'>
    

    and then in your web.xml file try changing to :

    <url-pattern>/voituretourisme/calculateurDataService</url-pattern>
    

    your html file should be like :

    <script language="javascript" src="voituretourisme/voituretourisme.nocache.js"></script>
    

    mind case sensitivity and I beleive this should compile correctly and work both in development mode and production mode.

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

Sidebar

Related Questions

I'm using a UIProgressView in my application, which is working great right now. But
I am using the Ninject.Web library with our web forms application. It's working great
I have a Phonegap/jQuery application which is working great, however in one area the
The following code is working great in a normal console application: private void button1_Click(object
I did nice winforms 2.0 application and it's working great and customers are still
I've got application settings working just fine. However, I'd like to be able to
I've developed an application at working using MySQL 5, that uses Views to access
I've been building my sample asp.net application using VWD2008 and the development virtual server
I'm working at a development shop that is using outdated bug tracking software. They're
So I just love it when my application is working great in Firefox, but

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.