Here is another implementation of a proxy. See comment #32 for the source: http://code.google.com/p/google-web-toolkit/issues/detail?id=3131#c32
I made some slight modifications but was able to proxy GWT RPC requests to a remote server in hosted mode. http://java.dzone.com/articles/how-do-cross-domain-gwt-rpc The attached files have a few dependencies as listed here: http://edwardstx.net/wiki/Wiki.jsp?page=HttpProxyServlet My web.xml looks liked this: <servlet> <servlet-name>proxy</servlet-name> <servlet-class>[full.package].gwt.server.ProxyServlet</servlet- class> <init-param> <param-name>proxyHost</param-name> <param-value>remote.host.name.com</param-value> </init-param> <init-param> <param-name>proxyPort</param-name> <param-value>80</param-value> </init-param> <init-param> <param-name>prefixPath</param-name> <param-value>/[Your Web App Module]/</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>proxy</servlet-name> <url-pattern>/module/service</url-pattern> </servlet-mapping> Take care, Chris On Aug 20, 8:49 am, Thomas Broyer <[email protected]> wrote: > On Aug 20, 1:12 pm, Marcelo Sena <[email protected]> wrote: > > > I wasn't able to see any problem with the requests > > either:http://pastebin.com/m1239a222 > > Did you at least find which catalina.base it's using? (it should be > displayed in the log at a "debug" > level:http://code.google.com/p/google-web-toolkit/source/browse/releases/1.... > > How about launching JUnit in debug and setting some break points? > > > I think I'll just quit on trying to make this work. > > I'm really sorry that it doesn't work for you (as I'm happily using it > in GWT 1.5's GWTShell and GWT 1.7's HostedMode –not in unit tests > though–) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
