Note that there are some explanatory texts on larger screens.

plurals
  1. POGWT RPC - Multiple RPC Services
    primarykey
    data
    text
    <p>I'm having the problem of splitting up a large RPC service into smaller chunks. I found the basics here <a href="https://stackoverflow.com/questions/12533839/gwt-rpc-multiple-rpc-services-per-app">GWT RPC - Multiple RPC Services Per App</a> , but I'm struggling with the implementation. I can't find any good guide, anywhere. I'm confused with the following part. (The goal is to split up one large RPC into two smaller ones)</p> <ol> <li><p>I create a servlet class in the module xml file</p></li> <li><p>in web.xml i create a servlet and one servlet-mapping with 2 servlet-urls. The first servlet is the 'main servlet' and is the same as in the module xml file. The second is an authentification servlet.</p></li> <li><p>I have a sync and async interface for both servlets and an server side implementation for both servlets. </p></li> <li><p>I create the servlets in the code with GWT.create(). I can call methods in the 'main servlet' without problems. But I can't call methods in the authentification servlet. When I try this I get the following error:</p></li> </ol> <blockquote> <p>[ERROR] [project] - Unable to load module entry point class com.projects.client.Project (see associated exception for details)</p> </blockquote> <pre><code>com.google.gwt.user.client.rpc.ServiceDefTarget$NoServiceEntryPointSpecifiedException: Service implementation URL not specified at com.google.gwt.user.client.rpc.impl.RemoteServiceProxy.doPrepareRequestBuilderImpl(RemoteServiceProxy.java:430) at com.google.gwt.user.client.rpc.impl.RemoteServiceProxy.doInvoke(RemoteServiceProxy.java:368) at com.google.gwt.user.client.rpc.impl.RemoteServiceProxy$ServiceHelper.finish(RemoteServiceProxy.java:74) at com.projects.client.AuthService_Proxy.signIn(AuthService_Proxy.java:44) at com.projects.client.Authentication.signIn(Authentication.java:38) at com.projects.client.Project.onModuleLoad(Project.java:53) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) </code></pre> <blockquote> <p>15:48:13.877 [ERROR] [project] Failed to load module 'project' from user agent 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11' at 127.0.0.1:2588**</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload