the problem is with the port that serves the authentication code...
SOP takes to account server and port.... you'll have to write a proxy
or change the port of the service...

On Jun 27, 3:48 am, Surya <master...@gmail.com> wrote:
> I have tomcat server running on port 6828. I have GWT hosted mode
> running on jetty 8888.
>
> When i try to access tomcat on 6828 for spring authentication using
> the code :::::::
>
> RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, url);
>                 builder.setHeader("Content-Type", "application/x-www-form-
> urlencoded");
>                 builder.setHeader("Expires","0");
>
>                 try {
>
>                         builder.sendRequest(postData, this);
>                 } catch (RequestException e) {
>                         console.addMessage("Exception during authentication " 
> + e.getMessage
> ());
>                 }
>
> I get the following exception on the builder.sendRequest
> (postData,this) line.
>
> com.google.gwt.http.client.RequestPermissionException: The 
> URLhttp://localhost:6828/xxxxxx/j_spring_security_checkis invalid or
> violates the same-origin security restriction
> Detailed Message : Access is denied.
>
> I am really running short of time. Some one please help me out.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to