Monday, October 28, 2013

Re: GWT - How add files from other project?

did you include your new module into your project?
<inherits name='com.domain.sample.Dto'/>

On Sunday, October 27, 2013 4:39:02 PM UTC-7, wrote:

I have a GWT project. Client code is located in the "client" dir. I want to add external java classes (mainly DTO classes) that are in external directory (project). How I need to configure the gwt.xml file?

I get errors of this kind:

[ERROR] Errors in 'file:/C:/Myprojects/ProjectName/ProjectModule/src/com/domain/sample/client/' [ERROR] Line XX: No source code is available for type com.domain.sample.dto.MyClass; did you forget to inherit a required module?

I'm working with Eclipse and my workspace structure is:

MyDTO - Java Project




MyWebUI - GWT Project

I need that MyWebUI take files from MyClass located at the package com.domain.sample.dto wich is part of MyDTO project and compiles it as a client code. The idea is to reuse the code of MyDTO in other GWT's. Is this possible at all? From what I see GWT allows only that the code MUST BE under client directory (package) within the GWT project.

Already tried to define MyDTO as a module, adding the Dto.gwt.xml to com.domain.sample, pointing to com.domain.sample.dto.

Contents of Dto.gwt.xml:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.1//EN" "">


  <inherits name='' />

  <source path='dto'/>


But still get the same error... Any ideas?

Thanks for helping me :D

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment