Unable to find type and gwt-lacertae

247 views
Skip to first unread message

miron

unread,
Apr 8, 2008, 3:24:11 AM4/8/08
to Google Web Toolkit
Hello.

I have small problem. I can try example of gwt-lacertae.
http://code.google.com/p/lacertae/wiki/Example
It's tool for generate proxy for gwt and php.

I have gwt module: pl.mirek.test and I created packages:

client.rpc.beans
client.rpc.jsonizers
client.rpc.proxies
client.rpc.services

I added file with beans and service and I generated
jsonizers, proxies, and php.
And I add generated file to package.

Everything compile is ok. But when I run my sample I have error:
Failed to load module pl.mirek.test.test
In gwt log I have information:


[ERROR] Unable to find type 'pl.mirek.test.client.test'
[ERROR] Hint: Previous compiler errors may have made this type
unavailable
[ERROR] Hint: Check the inheritance chain from your module;
it may not be inheriting a required module or a module may not be
adding
its source path entries properly

I have question. Package:
client.rpc.beans
client.rpc.jsonizers
client.rpc.proxies
client.rpc.services

is not get module. Maybe isn't correct?

Maybe I must add to test-gwt.xml line with source tag:

<module>
<inherits name="com.google.gwt.user.User"/>
<inherits name="com.google.gwt.http.HTTP"/>
<inherits name="com.google.gwt.json.JSON"/>

<source path="/client/rpc/proxies"/> <--- Maybe this. But this not
work
<source path="/client/rpc/beans"/>
<source path="/client/rpc/jsonizers"/>
<source path="/client/rpc/services"/>


<entry-point class="pl.mirek.test.client.test"/>
</module>

I try many combination source path. For example.

/Testing/src/client/rpc/beans
Testing/src/client/rpc/beans
/src/client/rpc/beans
/client/rpc/beans
beans

Now I don't have idea. Can you help me?

Mat Gessel

unread,
Apr 8, 2008, 1:28:59 PM4/8/08
to Google-We...@googlegroups.com
You need to add a source path element which points to your application code (i.e. entry-point). Empty GWT modules have an implicit source element of <source path="client">. However, once you explicitly define another source entry, the implicit entry goes away.

Add <source path="client"> to your .gwt.xml. Also note that "entry-point" references a class ("test" is lower-case leading me to think it may be a package).

-= Mat

--
Mat Gessel
http://www.asquare.net/gwttk/

miron

unread,
Apr 9, 2008, 7:02:14 AM4/9/08
to Google Web Toolkit
Thank Mat for your response. Today I will try.

I have question. Package: client.rpc.beans, client.rpc.jsonizers
etc..
is not GWT module. It is correct?
Can I use with GWT project usual package( not GWT module)?

Mirek



On 8 Kwi, 19:28, "Mat Gessel" <mat.ges...@gmail.com> wrote:
> You need to add a source path element which points to your application code
> (i.e. entry-point). Empty GWT modules have an implicit source element of
> <source path="client">. However, once you explicitly define another source
> entry, the implicit entry goes away.
>
> Add <source path="client"> to your .gwt.xml. Also note that "entry-point"
> references a class ("test" is lower-case leading me to think it may be a
> package).
>
> -= Mat
>
> --
> Mat Gesselhttp://www.asquare.net/gwttk/

Mat Gessel

unread,
Apr 9, 2008, 1:19:22 PM4/9/08
to Google-We...@googlegroups.com
On Wed, Apr 9, 2008 at 4:02 AM, miron <mirosla...@gmail.com> wrote:
> I have question. Package: client.rpc.beans, client.rpc.jsonizers
> etc..
> is not GWT module. It is correct?
> Can I use with GWT project usual package( not GWT module)?

Yes; your example in the first email looks correct. By specifying
these packages with a "source" element, you have made them available
for compilation into the client application. Make sure these packages
are in the classpath for the GWTCompile and GWTShell.

Reply all
Reply to author
Forward
0 new messages