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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:13:48+00:00 2026-05-28T07:13:48+00:00

I am running a basic GWT application in IntelliJ, below is my code public

  • 0

I am running a basic GWT application in IntelliJ, below is my code

           public class test implements EntryPoint {

/**
 * This is the entry point method.
 */
public void onModuleLoad() {
    final Button button = new Button("Click me");
    final Label label = new Label();

    button.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            if (label.getText().equals("")) {


                 testService.App.getInstance().getMessage("h", new AsyncCallback<Inter>() {
                     public void onFailure(Throwable caught) {
                         //To change body of implemented methods use File | Settings | File Templates.
                     }

                     public void onSuccess(Inter result) {
                        label.setText(result.getToken());
                     }
                 });
            } else {
                label.setText("");
            }
        }
    });

Impl Class

        public class testServiceImpl extends RemoteServiceServlet implements testService {
// Implementation of sample interface method
public Inter getMessage(String msg) {
    RdbHelper rdbHelper = new RdbHelper();
    return rdbHelper.getMsg();

}

}

RdbHelper Class

    public class RdbHelper {

public Inter getMsg(){
    Inter inter = new Inter();
    return inter;
}

}

Inter Class

        public class Inter implements Serializable{

private String token ;

public String getToken() {
    token = "Hello";
    return token;
}

public void setToken(String token) {
    this.token = token;
}

}

I should see msg “Hello” but i am getting this error .

       ERROR: Errors in 'file:/C:/work/Grails/TestFinal/src/com/test/client/test.java'. 
       ERROR: Unable to find type 'com.test.client.test'. 
       ERROR: Line 28: No source code is available for type com.test.shared.Inter; did  you forget to inherit a required module?. 
     ERROR: Hint: Previous compiler errors may have made this type unavailable. 
     ERROR: Hint: Check the inheritance chain from your module; it may not be   inheriting a required module or a module may not be adding its source path entries   properly. 
     ERROR: Failed to load module 'test' from user agent 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.75 Safari/535.7' at 127.0.0.1:51070. 

Note: I am trying the same thing in Eclipse and its working fine, but this is the Issue i am facing in IntelliJ

  • 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-28T07:13:49+00:00Added an answer on May 28, 2026 at 7:13 am

    Did you remember to put

    <source path="shared"/>
    

    in your Module.gwt.xml file.
    You need to do this to compile the code in shared package to javascript code. If not it only compiles the code in the client package and thereby the code in the shared folder is not available on client side.

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

Sidebar

Related Questions

I have a website running a basic ASP.NET application that is mostly used from
Running FxCop on my code, I get this warning: Microsoft.Maintainability : 'FooBar.ctor is coupled
I'm working on a basic iPhone app to test some events, and I'm running
I currently have a Pylons application running with a basic user system set-up. I
I have a basic soap service running on glassfish, that returns List<String> like this
I have a basic C# console application that executes a fairly long running process
I'm running a basic test to make sure the server supports .htaccess. Unfortunately, we're
Used this http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html tutorial to understand the basic concepts, but having problems running my
I'm implementing some basic ranking functionality in my MVC application, but I'm running across
We need to create a basic PDF reader running on J2ME. While there are

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.