just a blind shot - try to define an additional servlet-mapping for your service servlet in your web.xml file.
On Jul 22, 2:50 pm, rintcius <[email protected]> wrote: > Hi, > I am looking for a project setup that allows me to work easily with > both hosted mode and web mode (including RPC). > I am getting the exception below, whenever I start up hosted mode > after I have started it in web mode (i.e. war/<myModule> directory > contains the compiled code for web mode). If I am starting hosted mode > on a clean war/<myModule> directory then it works ok. > > To workaround it I thought to add a specific module for hosted mode > like this: > <module rename-to='myModuleHosted'> > <inherits name='my.company.gwt.MyModule'/> > <set-property name="user.agent" value="gecko" /> > <set-property name="locale" value="default" /> > </module> > And then start up this from the shell (with args: -startupUrl > MyModuleHosted.html > my.company.gwt.MyModuleHosted). This works well as long as I dont do > any RPC calls. > > RPC calls however fail since they try to address myModuleHosted/ > myServicePath whereas the service is still available under myModule/ > myServicePath. > > Any ideas to get the service available as myModuleHosted/myServicePath > instead? > Or any other ideas for a setup? > > Thanks, Rintcius > > [ERROR] Error while executing the JavaScript provider for property > 'user.agent' > java.lang.RuntimeException: Failed to invoke native method: > __gwt_getProperty with 1 arguments. > at com.google.gwt.dev.shell.moz.LowLevelMoz.invoke(LowLevelMoz.java: > 134) > at com.google.gwt.dev.shell.moz.ModuleSpaceMoz.doInvoke > (ModuleSpaceMoz.java:99) > at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: > 453) > at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject > (ModuleSpace.java:231) > at > com.google.gwt.dev.shell.ModuleSpacePropertyOracle.computePropertyValue > (ModuleSpacePropertyOracle.java:108) > at com.google.gwt.dev.shell.ModuleSpacePropertyOracle.getPropertyValue > (ModuleSpacePropertyOracle.java:65) > at com.google.gwt.dev.cfg.ConditionWhenPropertyIs.doEval > (ConditionWhenPropertyIs.java:48) > at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:36) > at com.google.gwt.dev.cfg.ConditionAll.doEval(ConditionAll.java:37) > at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:36) > at com.google.gwt.dev.cfg.Rule.isApplicable(Rule.java:35) > at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind > (StandardRebindOracle.java:103) > at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind > (StandardRebindOracle.java:62) > at com.google.gwt.dev.shell.StandardRebindOracle.rebind > (StandardRebindOracle.java:172) > at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind > (ShellModuleSpaceHost.java:114) > at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:474) > at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate > (ModuleSpace.java:365) > at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java: > 39) > at com.google.gwt.core.client.GWT.create(GWT.java:91) > at com.google.gwt.user.client.DOM.<clinit>(DOM.java:35) > at com.google.gwt.user.client.ui.SimplePanel.<init>(SimplePanel.java: > 35) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
