Looks like the Java source for AgsService is not available, but it should be
available by default since it's under the client package. However, if you've
put a source path in your gwt.xml to make another package hierarchy
available to the GWT compiler, you have to explicitly include client , as
well.

WRONG

  <source path='shared'/>

RIGHT

  <source path='client'/>

  <source path='shared'/>


HTH,
/dmc

On Thu, Mar 17, 2011 at 11:03 AM, tanteanni <tantea...@hotmail.com> wrote:

> (this is my last attempt to get a message through the moderators - my
> last 2 question seem to be ignored)
>
> at the moment i am working on my first gwt application (after going
> through the (great) stockwatcher tutorial). I am facing problem on
> getting server side services to work. on starting my app in
> development mode i get:
>
> 15:41:13.749 [ERROR] [myApp] Unable to load module entry point class
> myPackage.client.myApp (see associated exception for details)
>
> java.lang.RuntimeException: Deferred binding failed for
> 'myPackage.client.services.AgsService' (did you forget to inherit a
> required module?)
>    at
> com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
>    at com.google.gwt.core.client.GWT.create(GWT.java:98)
>    at myPackage.client.GWZmenu.<init>(GWZmenu.java:39)
>    at myPackage.client.myApp.onModuleLoad(myApp.java:35)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
>    at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
> 25)
>    at java.lang.reflect.Method.invoke(Method.java:597)
>    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> 396)
>    at
>
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
> 183)
>    at
>
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
> 510)
>    at
>
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
> 352)
>    at java.lang.Thread.run(Thread.java:619)
> Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see
> previous log entries)
>    at
> com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
> 503)
>    at
> com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
>    at com.google.gwt.core.client.GWT.create(GWT.java:98)
>    at myPackage.client.GWZmenu.<init>(GWZmenu.java:39)
>    at myPackage.client.myApp.onModuleLoad(myApp.java:35)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
>    at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
> 25)
>    at java.lang.reflect.Method.invoke(Method.java:597)
>    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> 396)
>    at
>
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
> 183)
>    at
>
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
> 510)
>    at
>
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
> 352)
>    at java.lang.Thread.run(Thread.java:619)
>
> The Serviceinterface is:
> @RemoteServiceRelativePath("AgsService")
> public interface AgsService {
>        Map<String, String[]> getFedLandsCounties();
>        Map<String, String[]> getFedLandsComm();
>        Map<String, String[]> getCountiesComm();
> }
>
> The Implementation uses a jar that connects via jpa2 to a db to get
> the Maps. I am using Maven the app was generated via appcreator (-
> maven).
>
> with this interface i went through the according part of stockwatcher-
> tutorial (added Impl(emantation), an Async interface, updated web.xml)
>
> the web.xml looks like this:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE web-app
>    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>    "http://java.sun.com/dtd/web-app_2_3.dtd";>
>
> <web-app>
>
>        <!-- Servlets -->
>        <servlet>
>                <servlet-name>AgsServiceImpl</servlet-name>
>
>  <servlet-class>myPackage.server.AgsServiceImpl</servlet-class>
>        </servlet>
>
>        <servlet-mapping>
>                <servlet-name>AgsServiceImpl</servlet-name>
>                <url-pattern>/myApp/AgsService</url-pattern>
>        </servlet-mapping>
>
>        <!-- Default page to serve -->
>        <welcome-file-list>
>                <welcome-file>myApp.html</welcome-file>
>        </welcome-file-list>
>
> </web-app>
>
> is there anybody whi can say what i did wrong or could say how / where
> to look to solve this problem?
>
> thx in advance
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to