I did some refactoring of my gwt application, and make it multiple modules (i.e. multiple *.gwt.xml and EntryPoint)
Everything seems to work fine, except for the RPC. Since I refactored the application, from a single mygwtapp.gwt.xml
into multiple gwt.xml files:
main.gwt.xml
user.gwt.xml
login.gwt.xml
and so on...
I had to change the servlet mapping URL-pattern from:
/mygwtapp/someRPC
into /main/someRPC
to make sure that RPC's will work for the main module. It works for the main module but not for the other modules. As each module is excepting to have RPC call relative to its module name like /user/someRPC
What is the work-around for this kind of scenario?