Using hosted mode I began with (in the App)
ServiceDefTarget endpoint = (ServiceDefTarget)todoListBackupService;
endpoint.setServiceEntryPoint("/todoListBackupService");
and likewise in the ...gwt.xml
<servlet path="/todoListBackupService"
class="anicca.gwt.todo.server.TodoListBackupServiceImpl"/>
It didn't run and tells me that I need to use GWT.getModuleBaseURL()
I do that as
endpoint.setServiceEntryPoint(GWT.getModuleBaseURL() + "/
todoListBackupService");
Now it runs but still tells me I'm using a deprecated syntax for the
server path and advised me to use GWT.getModuleBaseURL(). What
gives??
kind regards
Mark
Complicated answer: employ the servlets under /your.module.name/
SomeServletName.
Maybe I misunderstood Reiner's suggestion but I tried
<servlet path="/anicca.gwt.todo.client.TodoApp/todoListBackupService"
class="anicca.gwt.todo.server.TodoListBackupServiceImpl"/>
instead of
<servlet path="/todoListBackupService"
class="anicca.gwt.todo.server.TodoListBackupServiceImpl"/>
and giving the full app path bombed (forget the deprecation:
"OnFailure() fired on the Async callback.)
The must be a straight forward syntax for declaring a servlet (that
isn't deprecated according to gwt 1.3)
any help appreciated
Kind regards
mark
On Apr 13, 1:19 am, "Dan Morrill" <morri...@google.com> wrote:
> Hi, dukha!
>
> The GWT.getModuleBaseURL() method returns a trailing slash in current
> versions. If your module base is /foo, then your code will result in this
> URL path: /foo//todoListBackupService
>
> The code is detecting the double-slash. Try using GWT.getModuleBaseURL() +
> "todoListBackupService" instead and see if the warning goes away.
>
> Hope that helps!
>
> - Dan Morrill
>
thanks for the help
regards
Mark