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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:22:51+00:00 2026-05-24T02:22:51+00:00

I used the GWT Maven plug-in (version 2.3.0) to generate a GWT project. The

  • 0

I used the GWT Maven plug-in (version 2.3.0) to generate a GWT project. The nice thing about that is that the Maven plug-in takes care of generating the async part of the service. Everything appears to work but the servlet is not responding both when running in hosted mode (running in Jetty) and when deploying the resulting WAR to Tomcat.

My problem is now that the servlet is simply not responding. The onSuccess() callback is invoked but all I get are null values. I pretty much copied the tutorial from the GWT homepage, so my service is created in the this way:

final StatusServiceAsync statusService = GWT.create(StatusService.class);

Here is my service interface:

@RemoteServiceRelativePath("status")
public interface StatusService extends RemoteService
{
    String getStatus(String someInput);
}

As already mentioned, the async counterpart is generated by the Maven plug-in. The web.xml looks like this:

<servlet>
   <servlet-name>statusServlet</servlet-name>
   <servlet-class>my.package.StatusServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
  <servlet-name>statusServlet</servlet-name>
  <url-pattern>/StatusBoard/status</url-pattern>
</servlet-mapping>
<welcome-file-list>
  <welcome-file>StatusBoard.html</welcome-file>
</welcome-file-list>

At first, I thought the configuration is totally wrong so I played around with it a little bit. When I changed the <servlet-class> value, the servlet container logged an ClassNotFoundException. Then I changed the @RemoteServiceRelativePath I also got an error. So the configuration can’t be totally wrong.

Here is the server-side code (I stripped it down to see that nothing else could go wrong):

public class StatusServiceImpl extends RemoteServiceServlet implements StatusService
{
    private static final long serialVersionUID = 3317511632727461036L;

    @Override
    public String getStatus(final String someInput)
    {
        return someInput;
    }
}

Sorry that I forgot that detail but sometimes, the debugger doesn’t recognize the breakpoint in the servlet. But even when it does, the returned value is still null.

Any ideas are much appreciated!

  • 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-24T02:22:52+00:00Added an answer on May 24, 2026 at 2:22 am

    By default, your GWT app has a base URL from the module name. If you have used the “rename-to” attribute in your gwt.xml file, then that value will be your base URL. In this case, looking at your web.xml entries, your module should be named “StatusBoard.” Or change your URL to your “rename-to” value.

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

Sidebar

Related Questions

We have a very large GWT project that results in a monolithic app about
GWT introduced with version 1.6 handlers to be used instead of listeners. Now I
I have configured a Maven build for a very small GWT project I'm having.
I have a POJO that is used with GWT's RequestFactory and an associated proxy.
I used TabLayoutPanel widget in my GWT project but it is not working in
At first I used the Grid. After creating a new version of the GWT,
Is there alternative to gwt-dispatch to be used in GWT project?
Recently I converted my GWT web-app ( GWT 2.4.0 ) to a maven project.
I have a visualization DataSourceServlet in a GWT application, which is used to generate
I have some code that used to compile with GWT 1.x and link into

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.