SOLVED!!!
Isn't always something real dumb. So my final piece of
misunderstanding on <source/> element was keeping this from compiling.
The inherited module xml file was under gwt/. The path component of
the <source/> element is relative to the directory in which the xml
module file resides. So it looked like this ...
gwt/
Patient.java
Patient.gwt.xml
So my <source path="gwt" /> entry was likely making the compiler look
for source under gwt.gwt.Patient. LOL
I changed it to <source path=""/> which I doubted was legal. But it
worked!!!
Hope this might help someone.
On Aug 29, 1:01 pm, jack <[email protected]> wrote:
> I meant to say the jar i created is NOW in my project's classpath -
> and still getting the same error
>
> On Aug 29, 12:42 pm, jack <[email protected]> wrote:
>
> > Ok, so now I have some idea of how the <source/> element works.
>
> > I've gone a little further and I have created a jar file with
> > gwt.Patient (both source and class files). gwt.Patient.gwt.xml now
> > includes a <source path="gwt"/>. I think I need this since I am using
> > a non-standard package convention that does not include client/server
> > packages and I need to tell the GWT compiler where the code for this
> > inherited module exists.
>
> > This jar file is not in my projects classpath but I am getting the
> > same old tiresome error.
>
> > Any help would be greatly appreciated.
>
> > On Aug 29, 11:20 am, jack <[email protected]> wrote:
>
> > > I understand what this issue is and basically how to solve it.
> > > Namely, I need to create a module xml file for code that I want to use
> > > in my client and inherit it in my client's xml module.
>
> > > In my case, I have a widget that calls a service through GWT-RPC. The
> > > service returns a simple DTO (that I define it in an external project
> > > and bundle into a jar file and include it in my client's Eclipse
> > > project)... I call it "gwt.Patient".
>
> > > -Eclipse is good with what I've done [check]
> > > -I use <inherits name='gwt.Patient' /> in client module xml. [check]
> > > -I create gwt.Patient.gwt.xml (I know without this GWT compile will
> > > immediately complains it can't find it) [check]
>
> > > From what I have read, this is all I need. Alas, it is not true.
>
> > > Still I get "did you forget to inherit a module" when I do a GWT
> > > compile for every class that references gwt.Patient (the service
> > > interface, the async interface and the widget class).
>
> > > I couple of things I have done to work around this ...
>
> > > -turned on Debug level when compiling: I see GWT inheriting the
> > > module. But I also see some indication of gwt.Patient being
> > > "excluded" in some context - what context this is isn't clear from the
> > > logging.
>
> > > -the above made me think I needed to do something with <source/> tags
> > > in the client's xml. I kinda understand this tag in that it includes
> > > and excludes source from GWT compile. But I have yet to read a good
> > > explanation of what 'path' means. At any rate when I do <source
> > > path="???" includes="gwt.Patient"></source> I do get around the error
> > > but then it complains ...
>
> > > "Checking rule <generate-with
> > > class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/>
> > > [ERROR] Unable to find type ...<my client widget class>"
>
> > > ARGH!!!!
>
> > > Anyone understand what's going on here and what I am doing wrong?
>
> > > Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---