GWT Eclipse Project Dependency

126 views
Skip to first unread message

Johann

unread,
Apr 24, 2008, 7:53:12 PM4/24/08
to Google Web Toolkit
Hi!,
I'm trying to make a WebProject containing the GWT code works with a
separate EjbProject where I have some transfers objects. I have
defined inside the EjbProject a Ejb.gwt.xml file as follows:

<module>
<inherits name='com.google.gwt.user.User' />
<source path="to"/>
</module>

This file is located just where it can reads the package to.

Then inside my WebProject I have my file Web.gwt.xml as follows:

<module>
<inherits name='com.google.gwt.user.User' />
<inherits name="myproject.Ejb" />
<entry-point class='myproject.Web' />
</module>

I have added the EjbProject in the Java Build Path but when I start
the hosted mode it sends some errors saying that it can't find the TO
classes, any idea what I'm doing wrong?

Thanks,

Johann

Toki

unread,
Apr 25, 2008, 4:13:34 AM4/25/08
to Google Web Toolkit
I have the same issue with Eclipse Cypal studio plugin

gregor

unread,
Apr 25, 2008, 5:45:01 AM4/25/08
to Google Web Toolkit
Hi Johann,
>
> <module>
> <inherits name='com.google.gwt.user.User' />
> <source path="to"/> <<<<<<< looks like maybe not fully qualified path
> </module>
>

>
> <module>
> <inherits name='com.google.gwt.user.User' />
> <inherits name="myproject.Ejb" /> <<<<<<< looks like maybe not fully qualified path
> <entry-point class='myproject.Web' />
> </module>
>

If Ejb.gwt.xml lies at,say, com.foo.mycompany.myproject and TO classes
lie at com.foo.mycompany.ejbproject.to then I think it should be:

<module>
<inherits name='com.google.gwt.user.User' />
<source path="to"/>
</module>


<module>
<inherits name='com.google.gwt.user.User' />
<inherits name="com.foo.mycompany.myproject.Ejb" />
<entry-point class='myproject.Web' />
</module>
>

The rule is that the web gwt.xml must have the inherit tag specify all
packages from source root to ejb.gwt.xml and the ejb.gwt.xml path tag
must have all packages from it's own location to the to package.

regards
gregor



Johann

unread,
Apr 25, 2008, 8:57:54 AM4/25/08
to Google Web Toolkit
Thanks for your help but I found the solution, I just needed to
reference the sources of the EjbProject in the WebProject (Java Build
Path-->Libraries-->Add Class Folder) and then it worked.

Johann
Reply all
Reply to author
Forward
0 new messages