Search code examples
google-app-enginegwtrestlet

GWT Compile Error - Restlet related?


The XXX are just names that I need to keep confidential.

Compiling module com.XXX.XXX.XXX_Test
   Validating newly compiled units
      Ignored 12 units with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
   Scanning for additional dependencies: file:/D:/Eclipse/Indigo/Workspace/XXX%20Test/src/com/XXX/XXX/client/Restlet.java
      Computing all possible rebind results for 'com.wai.XXX.client.proxy.DonglesProxy'
         Rebinding com.XXX.XXX.client.proxy.DonglesProxy
            Checking rule <generate-with class='org.restlet.rebind.ClientProxyGenerator'/>
               [ERROR] Errors in 'file:/D:/Eclipse/Indigo/Workspace/XXX%20Test/src/com/XXX/XXX/client/proxy/DonglesProxy.java'
                  [ERROR] Line 11: No source code is available for type org.restlet.resource.ClientProxy; did you forget to inherit a required module?
               [ERROR] Unable to find type 'com.XXX.XXX.client.proxy.DonglesProxy'
                  [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

Here is what the console tells me when I try to do a GWT Compile on my project. What I don't understand that I've included the 'org.restlet.jar' into the buildpath of the project and have the following imports in the DonglesProxy source code:

import org.restlet.resource.ClientProxy;
import org.restlet.resource.Put;

Anyone any ideas?

I'm new to Java and the whole Web Application process so my knowledge is a bit lacking. This is actually someone else's project that has been left unfinished so I'm trying to debug/understand someone else code whilst learning as I go along...nightmare :(

Any help would be greatly appreciated!

Cheers Kev


Solution

  • You must use :

    • import org.restlet.client.resource.ClientProxy;
    • import org.restlet.client.resource.Get;
    • import org.restlet.client.resource.Post;
    • import org.restlet.client.resource.Result;

    to define the proxies; Take notice of the "client" part;

    The referenced imports must be part of the GWT distribution;