Skip to content

Client and server code cannot be deployed under different base paths #28

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Deploy a GWT project where the client-side code is accessed via a different 
base URL than the server-side code
2. Invoke any SyncProxy factory method 

What is the expected output? What do you see instead?

The expected output would simply be a successful connection.  Instead, 
gwt-syncproxy throws a FileNotFound exception
that looks something like this:

java.io.FileNotFoundException: http://HOSTNAME/CLIENT/dispatch
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1434)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379)
    at com.gdevelop.gwt.syncrpc.RemoteServiceSyncProxy.doInvoke(RemoteServiceSyncProxy.java:160)

What version of the product are you using? On what operating system?

0.3, Windows

Please provide any additional information below.

The gwt-syncproxy library assumes the client-side code deploys under the same 
path as the server-side, so it expects to find the dispatch servlet on the same 
path.  It should be able to support them under different paths, however.  The 
hostname and the port are the same, so there is no same origin problem.

Original issue reported on code.google.com by codespel...@gmail.com on 3 Apr 2013 at 9:38

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions