> (I understand it invisibly adds <source path="client">, but how do I get the
> superior package added).

You don't. All of the client code has to be in packages under the
module. You can make a common/shared/data/model/whatever package for
shared client/server code and declare that in your module (i.e.,
<source path="common">). Move your shared classes into that package.

And it's not a bug that Eclipse finds your Data.java and compiles it
as a Java class. Rules for compiling GWT modules and Java classes are
significantly different.



On Thu, Jul 2, 2009 at 2:04 PM, Joseph Arceneaux<[email protected]> wrote:
> I guess it seems like a bug that the compiler discovers my Data.java when
> editing in Eclipse, but the runtime can't seem to do it.
> Thanks for the pointer, but I've been there.  First I tried "inherits
> com.foo.project.Data" and it complained that I needed to created a
> Data.gwt.xml file, which doesn't seem right.
> Then I tried the <source path="/"> and it said I couldn't use absolute paths
> (I understand it invisibly adds <source path="client">, but how do I get the
> superior package added).
> Any further suggestions?
> Thanks again,
> Joe
>
> 2009/7/2 Miguel Méndez <[email protected]>
>>
>> This isn't a plugin problem; it is fundamental to GWT.  If you want
>> Data.java to be usable from client code you will need to map it in via the
>> GWT module file.  The following link will help you understand how to do
>> that: http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideModules
>> On Wed, Jul 1, 2009 at 12:30 PM, Joseph Arceneaux
>> <[email protected]> wrote:
>>>
>>> The way I understand the GWT source arrangement paradigm, I have arranged
>>> my code like so:
>>> com.foo.project.Data.java - shared client/server code
>>> com.foo.project.client.Project.java - client code.
>>> com.foo.project.server.ServerSide.java - server code.
>>> When editing, Project.java can refer to Data.java elements, no problem.
>>>  But when I try to run in hosted mode, I get the error (from the client
>>> code):
>>>    Line 433: No source code is available for type com.foo.project.Data;
>>> did you forget to inherit a required module?
>>> Is there some runtime / hosted mode configuration to be done to resolve
>>> this?
>>> Thanks,
>>> Joe
>>>
>>>
>>>
>>>
>>
>>
>>
>> --
>> Miguel
>>
>>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to