I've been trying to deploy my gwt app in Tomcat server but I am having
problem running the application rpc in the ROOT, I mean, if the app is
deployed like:
webapps/mygwapp
I works, if the servlet defined in the web.xml is like this:
<servlet-mapping>
<servlet-name>greetServlet</servlet-name>
<url-pattern>/mygwtapp/greet</url-pattern>
</servlet-mapping>
In this case: http://localhost:8080/mygwtapp/greet works just fine.
However if I move the app inside the ROOT, that is renamed the folder
mygwtapp to ROOT
The applications RPC fails. If I change the the url mapping to just
<url-pattern>/greet</url-pattern>
It still wont work. Any ideas?
Thanks.
I see, then I can then rename the url-pattern into just
<url-pattern>/greet</url-pattern>?
How to map the client-side service to match the servlet mapping '/greet'?
GreetingServiceAsync serviceAsync= (GreetingServiceAsync)GWT.create(GreetingService.class);
ServiceDefTarget endpoint = (ServiceDefTarget) serviceAsync;
String moduleRelativeURL = " http://localhost:8080/"+ "greet";
endpoint.setServiceEntryPoint(moduleRelativeURL);
Hi I see thanks, however I am still trying to remember how I did it
before. I am not sure I used that kind of approach you suggested.