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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:08:18+00:00 2026-05-19T01:08:18+00:00

I’m new to GWT, and I’m setting up a project to hold the UI

  • 0

I’m new to GWT, and I’m setting up a project to hold the UI portion of a complicated application. The JPA data objects are defined in a separate project using MyBatis generated POJOs. Once I manually modify the JPA objects to include ‘implements Serializable’ (this is a separate problem I need to solve), the gwtc step in the build process can’t continue because it needs the source code for the JPA object, but can’t find them.

I’ve created the ‘core’ project’s jar files so that it includes the source .java files, but this didn’t work. I’ve tried adding a classpath element to the gwtc ant java call.

How can I make my UI project compile while keeping the JPA objects defined in a separate project?

Errors:

Buildfile: /Users/user/source/user_interface/build.xml

libs:

javac:

gwtc:
     [java] Compiling module org.mysite.ui
     [java]    Validating newly compiled units
     [java]       [ERROR] Errors in 'file:/Users/user/source/user_interface/src/org/mysite/ui/client/MyService.java'
     [java]          [ERROR] Line 21: No source code is available for type org.mysite.core.model.Person; did you forget to inherit a required module?
     [java]       [ERROR] Errors in 'file:/Users/user/source/user_interface/src/org/mysite/ui/client/MyServiceAsync.java'
     [java]          [ERROR] Line 19: No source code is available for type org.mysite.core.model.Person; did you forget to inherit a required module?
     [java]       [ERROR] Errors in 'file:/Users/user/source/user_interface/src/org/mysite/ui/client/presenter/MainTabPresenter.java'
     [java]          [ERROR] Line 75: No source code is available for type org.mysite.core.model.Person; did you forget to inherit a required module?
     [java]    Scanning for additional dependencies: file:/Users/user/source/user_interface/src/org/mysite/ui/client/MyApp.java
     [java]       Computing all possible rebind results for 'org.mysite.ui.client.MyService'
     [java]          Rebinding org.mysite.ui.client.MyService
     [java]             Checking rule <generate-with class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/>
     [java]                [ERROR] Unable to find type 'org.mysite.ui.client.MyService'
     [java]                   [ERROR] Hint: Previous compiler errors may have made this type unavailable
     [java]                   [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
     [java]    [ERROR] Errors in 'file:/Users/user/source/user_interface/src/org/mysite/ui/client/MyApp.java'
     [java]       [ERROR] Line 23:  Failed to resolve 'org.mysite.ui.client.MyService' via deferred binding
     [java]    [ERROR] Cannot proceed due to previous errors

BUILD FAILED
/Users/user/source/user_interface/build.xml:39: Java returned: 1

Total time: 26 seconds

Ant gwtc target:

  <target name="gwtc" depends="javac" description="GWT compile to JavaScript (production mode)">
    <java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler">
      <classpath>
        <pathelement location="src"/>
        <pathelement location="../core/src"/>
        <path refid="project.class.path"/>
      </classpath>
      <!-- add jvmarg -Xss16M or similar if you see a StackOverflowError -->
      <jvmarg value="-Xmx256M"/>
      <arg line="-war"/>
      <arg value="web"/>
      <!-- Additional arguments like -style PRETTY or -logLevel DEBUG -->
      <arg line="${gwt.args}"/>
      <arg value="org.mysite.ui.MyApp"/>
    </java>
  </target>
  • 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-19T01:08:18+00:00Added an answer on May 19, 2026 at 1:08 am

    GWT has always had this problem.

    The approach I have taken in the past is to make a .gwt.xml module in the other JAR including the JPA POJOs and putting the JPA annotation classes in an “emul” javax.persistence folder. This won’t work w/ many providers that use lazy fetching of course, so Gilead (as mentioned in another answer here) will be needed.

    Another way is to make copies of the JPA objects and just Dozer them before sending across RPC

    Luckily, GWT 2.1 has solved this problem. Use Entity proxies and request factories. It works well.

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

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I am using jsonparser to parse data and images obtained from json response. When
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want use html5's new tag to play a wav file (currently only supported
I am using the SimpleRSS gem to parse a WordPress RSS feed. The only
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
We are using XSLT to translate a RIXML file to XML. Our RIXML contains

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.