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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:39:07+00:00 2026-05-25T06:39:07+00:00

Looking at the GWT sample apps and the RPC tutorial the following package conventions

  • 0

Looking at the GWT sample apps and the RPC tutorial the following package conventions are used:

./client/GreetingService.java
./client/GreetingServiceAsync.java
./server/GreetingServiceImpl.java

Though the GWT docs are very sparse on best-practices what components get included where at runtime, the clear intuition is:

  • client – Compiled into JavaScript by GWT compiler
  • server – Compiled into bytecode by javac
  • shared – Compiled into JavaScript by GWT compiler and compiled into bytecode by javac

This would lead one to believe that code in client should not be on the compile-time sourcepath of javac. Yet since GreetingServiceImpl implements GreetingService, clearly code in client needs to be on the sourcepath during compilation, and included on the runtime classpath at deployment.

Given this, why doesn’t the GreetingService interface go in shared?

If you try to put it in shared, the GWT Eclipse Plugin complains “Missing Asynchronous Interface”…

  • 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-25T06:39:08+00:00Added an answer on May 25, 2026 at 6:39 am

    Let’s try to be clear :

    • There is no technical difference between the client and the shared package, it’s only a matter of convention. Both are declared as source packages in your module (the .gwt.xml file)
    • client and shared package get both compiled into javascript and bytecode
    • On server side, the bytecode for the whole client part is usually available, although most of it is not used.
    • Therefore, some people just remove the shared package, and put everything in the client package. It’s a matter of taste.
    • As Thomas said, the Service interface must be available to your client code. So it must either be in the client package or the shared package. But the ServiceAsync interface must be in the same package as the Service interface. And the ServiceAsync is certainly not something that is considered shared between client and server. So the ServiceASync interface should be in the client package.
    • As a consequence, the Service interface is put in the client package.
    • In your case, the GWT Eclipse Plugin complained because the ServiceASync interface was not found in the Service interface package.
    • You can still use the shared package for the classes that are sent through RPC.

    Does that answer your question?

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

Sidebar

Related Questions

I am developing a gwt project and am looking for an appropriate server side
I was looking through the sample gwt code provided with gwt, and in hacking
Heroku recently began supporting Java apps. Looking through the docs, it seems to resemble
I was looking into GWT. It seems nice, but our software have the must
I'm looking at some GXT code for GWT and I ran across this use
We are looking at integrating a full-blown GWT (Google Web Toolkit 2.0) application with
Looking for C# class which wraps calls to do the following: read and write
I'm looking for a good tutorial on how to customize a DataSource in SmartGWT
I'm looking for a stand-alone Pie Chart which I can use in a GWT
I am looking at History and History JavaDocs in GWT and I notice that

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.