I have problem with running the application in web mode, but it runs OK
in hosted mode and unfortunatelly it is not the problem with passing
empty string.
To me it seems like the client would not see the servlet url but I can
see it from browser so I should not have problem with browser
connection.
I tryied both Firefox and IE
I have this service
public interface KeywordsService extends RemoteService {
/**
* @gwt.typeArgs <java.lang.String>
*/
public List getBundleList();
}
using here
// service initialization
public ServiceProvider() {
// create async service
asyncService = (KeywordsServiceAsync)
GWT.create(KeywordsService.class);
// set endpoint
ServiceDefTarget endpoint = (ServiceDefTarget) asyncService;
endpoint.setServiceEntryPoint("http://my.server.com:8080/gwt/servlet/KeywordsServiceImpl");
};
calling
// get bundles
ServiceProvider sp = new ServiceProvider();
KeywordsServiceAsync asyncService = sp.getAsyncService();
Window.alert("before rpc call");
asyncService.getBundleList(sp.getBundlesCallback(this));
And it ends up in onFailure of
public AsyncCallback getBundlesCallback (Bundles bundles) {
final Bundles bundlesComp = bundles;
return new AsyncCallback() {
public void onSuccess(Object result) {
List bundlesList = (List)result;
.... process list
}
}
public void onFailure(Throwable caught) {
Window.alert(caught.getMessage());
bundlesComp.setText(1,0,"failed to load bundles list from
server");
caught.printStackTrace();
}
};
}
Plase advice, thanks a milion.
Radek