I read other GWT Servlet questions, but I have problems resolving my problem. My package is called Maps, and it has a service called MyService (which was configured according to the GWT tutorial). The web.xml file includes the following:
<servlet> <servlet-name>MyServiceImpl</servlet-name> <servlet-class>com.xerox.maps.maps.server.MyServiceImpl</servlet-class> </servlet> <servlet-mapping> <servlet-name>MyServiceImpl</servlet-name> <url-pattern>/Maps/service</url-pattern> </servlet-mapping>
In MyService, I have a line:
@RemoteServiceRelativePath("service") public interface MyService extends RemoteService { ...
However, when I try to make an RPC call, an error occurs. The error details say it is a 404 HTTP error. How can I fix this to make sure the display is correct?
Change 7.27
MyService.java contains the annotation:
@RemoteServiceRelativePath("service")
And web.xml contains:
<servlet-name>MyServiceImpl</servlet-name> <url-pattern>/com.x.maps.Maps/service</url-pattern>
If I follow XHR with FireBug, it shows me that there is a call to com.x.maps.Maps
source share