Hello Charles,

>[ERROR] Line 37: No source code is available for type
org.restlet.data.Preference<T>; did you forget to inherit a required module?
this kind of classes "org.restlet.data" are not taken from the GWT edition,
you have to be very careful when importing classes.

>I think that REST Web service needs org.restlet.jar from GAE and that GWT
client needs org.restlet.jar from GWT
that's totally right.
I just add that the root package of the GWT edition is "org.restlet.client".
Therefore, the Preference class is imported from the org.restlet.client.data
package.

>Should I have developed  two projects.
It is possible to split the default structure of a GWT eclipse project in
two projects : one for the "GWT client" and one for the server side which
helps to separate the import of packages.
I understand we should document more clearly this confusing aspect.

>But, in this case, is-it possible to deploy two projects in the sameURL
with GAE ?
I don't think so, but that's not a problem. Keep in mind that the GWT code
aims only at generating a set of static resources: javascript files, css,
images, etc.
These static resources can be served by a GAE application, or an application
stored in a servlet container, or in a standalone server.
At the end you will deploy only one project in GAE.

Best regards,
Thierry Boileau

Thanks for your answer.
>
> Your solution solve this problem, but when I put org.restlet.jar from the
> GWT edition, another problems appear :
>         [ERROR] Line 37: No source code is available for type
> org.restlet.data.Preference<T>; did you forget to inherit a required module?
>         [ERROR] Line 37: No source code is available for type
> org.restlet.data.MediaType; did you forget to inherit a required module?
>
>  [ERROR] Line 6: No source code is available for type
> org.restlet.resource.ClientProxy; did you forget to inherit a required
> module?
>
> I developed a project with two parts :
> -       A REST Web service
> -       A GWT client for this web service
>
> I think that REST Web service needs org.restlet.jar from GAE and that GWT
> client  needs org.restlet.jar from GWT
>
> Should I have developed  two projects. But, in this case, is-it possible to
> deploy  two projects in the sameURL with GAE ?
>
> ------------------------------------------------------
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2713403
>

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2713458

Reply via email to