I am attempting to use a module I created which holds my domain pojo
classes so I can share them. Following articles from the web I
constructed my module jar like this:
package com.company
pojo.gwt.xml

contents of pojo.gwt.xml include:

<module rename-to='pojo'>
        <source path="domain">
                <include name="*" />
        </source>
</module>

package com.company.pojo.domain
domainobject.java

I include this module in my main GWT project like this.
main.gwt.xml
        <inherits name='com.company.pojo' />

When I compile I get output like this:
    Searching for resources within file:/C:/Main/lib/pojo.jar
            Indexing zip file: C:\Main\lib\pojo.jar
               com/company/pojo/domain/domainobject.java
               com/company/pojo.gwt.xml
...
            Searching for included resources in C:\Main\lib\pojo.jar
               Excluding com/company/pojo/domain/domainobject.java
               Excluding com/company/pojo.gwt.xml
...
Compiling module com.company.main.Main
   Refreshing module from source
      Validating newly compiled units
         Removing units with errors
         Removing units with errors
            [ERROR] Errors in 'file:/C:/Main/src/com/company/main/
client/Main.java'
               [ERROR] Line 58: No source code is available for type
com.company.pojo.domain.domainobject; did you forget to inherit a
required module?

It seems to find the module but I cannot reference the domainobject
for some reason. Any ideas what I'm doing wrong?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to