Hello Alain.
Sorry, I hadn't read carefully previous posts in group...the example
posted by you for the case of using Adobe Air seems to work,
but there is a problem with moduleBaseURL in RemoteServiceServlet.
The MalformedURLException occurs each time I request RPC servlet:
if (moduleBaseURL != null) {
try {
modulePath = new URL(moduleBaseURL).getPath();
} catch (MalformedURLException ex) {
// log the information, we will default
servlet.log("Malformed moduleBaseURL: " + moduleBaseURL, ex);
}
}
hopefully RemoteServiceServlet doesn't stop request procceeding...
Here is the code I use to request RPC servlet:
if(Titanium.isTitaniumRuntime())
{
ServiceDefTarget endPoint = (ServiceDefTarget)
dataService;
String serviceEntryPoint = endPoint.getServiceEntryPoint();
serviceEntryPoint = "http://
http://127.0.0.1:8888/titanservice/
login";
endPoint.setServiceEntryPoint(serviceEntryPoint);
}
Servlet logs this kind of message:
javax.servlet.ServletContext log: loginservice: Malformed
moduleBaseURL: app://com.titan/titan/
java.net.MalformedURLException: unknown protocol: app
in gwt.xml I added <inherits name='com.ekambi.gwt.air.core.Gwt4Air'/>
to use patched RequestBuilder
Shurely it is only a warning in app logs, but still.....maybe i am
doing something wrong?
Best Regards,
Peter.