Hey there! Alright, it seems that the problem comes from cross-site requesting (since the port is different?). Anyway, I managed to make it work with a litle help of one friend. You need to use your own web server (and not the embedded jetty) to host your gwt app. This way the http port will be the same.
In order to do this you need to add these arguments in your run configuration (assuming you're using eclipse) : -noserver -whitelist "^http://" -startupUrl "http://localhost/ myWebApp/" com.me.myapp.MyEntryPoint Then you need to copy/paste once your copiled app into the "myWebApp" directory on your web server (check the doc-link below for that). With this, your Developpment mode will give an url that looks something like this : http://localhost/myWebApp/?gwt.codesvr=192.168.1.18:9997 You need to paste inside that url your .html gwt app page and there you shall have it. http://localhost/myWebApp/myGwtApp.html?gwt.codesvr=192.168.1.18:9997 Here is the doc link related: http://code.google.com/webtoolkit/doc/latest/FAQ_DebuggingAndCompiling.html#How_do_I_use_my_own_server_in_hosted_mode_instead_of_GWT's On the other hand I'm not sure if this is the suposed way of doing it. I still can not manage to have my breakpoints work in eclipse for example. If anyone got any hints for that I would be cool :) Hope that helps :) On Dec 15, 5:01 pm, joe <[email protected]> wrote: > Having the same issue. If you find anything out I would love to know. > > On Dec 13, 3:47 pm, Martones <[email protected]> wrote: > > > > > Hey guys and thanks for GWT2, it rocks! :D > > > I've just downloaded it and trying to make it work with my current > > project. All seems perfect except my ajax requests :( > > > I'm using local apache to generate request answers, the request seems > > to work but it returns "0" status and no response text. This request > > works well once I am in web mode though. > > > Example: > > > I'm requesting "http://localhost/test1.php", using RequestBuilder + > > Request.sendRequest. In the onResponseReceived theresponse.getStatusCode() > > returns0instead of the 200 I had before > > GWT2. > > > I'm using absolute path for this request andhttp://localhost/test1.php > > worst well in a browser. > > > Anyone got any hints? :) I'm sorry if this was already discussed > > elsewhere, I might have missed the accurate discussion :( > > > Thank you for reading! -- 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.
