Thanks for your feedback.
The WEB-INFO (instead of WEB-INF) was a typo.
The issue is resolved. Here is an explanation of why it failed.
First, the request that I wanted to send to my HttpServlet looked like
the following:
String url = GWT.getModuleBaseURL() + "RESTProxy/system";
RequestBuilder requestBuilder = new RequestBuilder
(RequestBuilder.GET, url);
requestBuilder.sendRequest("", new RequestCallback()
On the other hand, my web.xml looked like the following:
<servlet>
<servlet-name>RESTProxyServlet</servlet-name>
<servlet-class>com.foo.bar.server.RESTProxy</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>RESTProxyServlet</servlet-name>
<url-pattern>/foobar/RESTProxy</url-pattern>
</servlet-mapping>
As you can see, there is no wildcard in my url-pattern. I had to
modify my url-pattern to the following
<url-pattern>/foobar/RESTProxy/*</url-pattern>
After this change, everything goes fine.
Regards,
Maxime
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---