Hi, I am trying to get hosted mode to work via my eclipse (google plug-
in), so I can perform eclipse-based debugging. I receive a "violates
same-origin security restriction" exception, because I am trying to
access web services on a remote box (via RequestBuilder - based call).

Ok, so I mostly understand that there is a configurable workaround via
eclipse (based on a thread I found) where I do the following:

1) Select and open the Web Application run configuration you want to
execute
> (Run > Run Configurations... > Expand the 'Web Application' configurations >
> Select your run configuration).
>
> 2) In the 'Main' tab, under the Embedded Server section, uncheck the "Run
> built-in server checkbox.
>
> 3) Next, in the "GWT" tab, change the URL to point to your development
> server.


, however, I still am not getting things to work right. Here is what I
do:

Step 2) above: I uncheck the "Run built-in server checkbox" (I don't
remove or change the editable "Port:" field from the defaulted 8080).

Step 3) above: I specify the actual remote web service URL, which is:
http://192.168.1.107:7001/NTM_REST/ChartCorr/getFeature  (I am not
sure what exactly to put here, so don't know if the is correct)

Then, when I click the "Run" button from the run configurations, it
fires up the GWT hosted mode, warns me I am accessing the remote site,
security risk, etc, and I click "yes" to allow access. At this point,
it simply runs my web service directly, which isn't what I need (as
stated above,  I REALLY want to call the remote web service from the
LOCAL GWT application on eclipse I have created.

Without shutting down the GWT hosted mode, I simply replace the URL
with the original default URL to the LOCAL GWT application:

http://localhost:8080/MyApplication.html

, and promptly get the "violates same-origin security restriction"
error all over again.

Obviously I am not getting it. I have spend alot of time trying to get
it, read various threads, and its not sinking in. I would be extremely
grateful to anyone who can guide me through this better. Thanks so
much.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to