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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:44:43+00:00 2026-06-12T18:44:43+00:00

I have my GWT project, and another project that just has simple Domain Objects,

  • 0

I have my GWT project, and another project that just has simple Domain Objects, and has nothing GWT specific.

In my Domain Objects project, I have a class Bob that has some primitive fields. Nothing special. He implements Serializable for the hell of it.

I wanted to return this type from a GWT service method. Learning that the service method can only return classes that implment GWT’s IsSerializable interface, I created a subclass of Bob, BobSO (Bob Service Object), and had it implement IsSerializable.

Basic project structure

proj> Bob.java

proj_gwt
proj_gwt > projgwt.gwt.xml
proj_gwt.client
proj_gwt.server
proj_gwt.shared > BobSO.java

I’m getting an error when running the service. It seems that it’s loading BobSO, and seeking the source for the superclass Bob, and can’t find the source.
“Errors in [path to file]
Line 6: No source code is avaiable for Bob did you forget to inherit a required

  1. Will by BobSO subclass work since he implements IsSerializable?
  2. It looks like GWT knows where BobSO is. What do I need to do to so it knows where the source to Bob.java is? I’ve tried creating a gwt.xml in my DOmain Objects project, but I’m not sure if it needs to list each class that should be visible, and how to import it in my GWT project.
  • 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-12T18:44:45+00:00Added an answer on June 12, 2026 at 6:44 pm

    1. Serializability

    Implement either Serializable or IsSerializable, plus make sure, that the class fulfills the remaining requirements for GWT serializability (a no-args constructor, no final fields, …)

    2. Locating the sources

    You need to create a module to help GWT-RPC find the serializable classes [*].

    The module “gwt.xml” can live in your domain project. Alternatively, if you you don’t want to touch the domain project, it can also live in your GWT project – just make sure to put it in the correct package:

    DomainProject

    src
      bar
        domain
          Bob.java
    

    GwtProject

    src
      bar
        Domain.gwt.xml (contains <src path='domain'/>)
      foo
        client
          MyEntryPoint.java
        shared
          BobSO.java
        Bar.gwt.xml (contains <src path='client'/>
                              <src path='shared'/>
                              <inherits name="foo.Domain"/>)
    

    Important notes

    • Make sure to delete the gwt-unitCache folder after changing such dependencies. Otherwise, the compiler often fails in strange ways (tested with gwt 2.5.0.rc2).
    • Always supply the source folders to the GWT compiler for everything the client side needs to know about. In this case, this is also the source for bar.domain.Bob.

    Note

    • It’s also possible to put Domain.gwt.xml in the “bar/domain” package, and use <source path=""/>

    [*] By the way, it may be surprising, that defining a module for the dependency is usually not even strictly necessary in GWT. (It is however required when GWT-RPC is involved.) Try it with a simple example, if you like – GWT will find the sources by itself – as long as they’re on the GWT compiler’s class path

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

Sidebar

Related Questions

I have a GWT/GAE project that has an arraylist of Strings on the server
I have gwt-project that is comunication to database. Application design mvp pattern and view
I have a gwt project that uses gwt-mosaic. Here is the error message I
I have a Smart GWT Project where the data that is to be displayed
I have the following code from a GWT Project that is part of the
I have maven-gwt project. It has lots of dependencies which is usual by a
I have a maven-based GWT project that includes Guava. I am running into trouble
I have a GWT project A and another project B on another computer. Now
i have a gwt project and using method GWT.create(SomeClass.class) throw exception. The exception is
I have an com.google.gwt.i18n.client.Messages implementation for a localizable GWT-Project. But it seems that it

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.