I deploy all my server code to the local tomcat which runs on port
8080.
In my client, I have this code:
ServiceDefTarget endpoint = (ServiceDefTarget)myService;
if (GWT.isScript())
endpoint.setServiceEntryPoint("client");
else
endpoint.setServiceEntryPoint("http://localhost:8080/myservlet/
client");
With this arrangement, my host-mode RPC calls are directed to my local
Tomcat instance. This worked very well until the latest release
candidate.
With 1.4RC2, the RPC calls fail with:
com.google.gwt.user.client.rpc.InvocationException: The call failed on
the server; see server log for details.
The server log says:
23/08/2007 11:08:36 org.apache.catalina.core.ApplicationContext log
INFO: ERROR: The module path requested, /Client/, is not in the same
web application as this servlet, /myservlet. Your module may not be
properly configured or your client and server code maybe out of date.
23/08/2007 11:08:36 org.apache.catalina.core.ApplicationContext log
INFO: WARNING: Failed to get the SerializationPolicy
'E41BA6A4574FE48371584B5B5E3B0124' for module 'http://localhost:8889/
Client/'; a legacy, 1.3.3 compatible, serialization policy will be
used. You may experience SerializationExceptions as a result.
23/08/2007 11:08:36 org.apache.catalina.core.ApplicationContext log
SEVERE: Exception while dispatching incoming RPC call
...
I'm guessing that with the latest release that RPC calls from the
hosted mode browser can only be made to its embedded tomcat server. Is
this the case? Or is there another approach that I should use
instead?
Andrew