ServiceDefTarget t = (ServiceDefTarget)service;
t.setServiceEntryPoint("/commonService");
So "/commonService" is url path that maps to the servlet. But when it connects I get errors on the server side:
ERROR: The serialization policy file '/forums/discussions/7B344C69AD493C1EC707EC98FE148AA0.gwt.rpc' was not found;
did you forget to include it in this deployment?
So it appears that on the server side, in the shared web app, it's looking for an rpc file with a path "forums/discussions" which is specific to the client module. I can get things to work by copying these files to the shared web app, but that means I'll have to create copies of the .rpc files at different paths for every client that uses the shared service.
Is there way way to avoid this by telling the servlet where to find the rpc files, or ... ?
thanks,
Rob
getSerializationPolicy
doGetSerializationPolicy
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/iIzZ0K7XhEgJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
If I am not mistaken you can override in your ServiceImplementation a couple of methods (your choice which one). In RemoteServiceServlet, you will find:getSerializationPolicy
doGetSerializationPolicyLikely the latter will be easier to override.