(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