Tuesday, June 19, 2018

Re: Using UIField HTML to create a dynamic table

As can be seen in your screenshot, the request goes to /myaction/myActionService. The myActionService part comes from the @RemoteServiceRelativePath("myActionService"), and the /myaction part comes from the module name; or in this case most likely a rename-to="myaction" in your module (which is also what triggers GWT into generating a file named myaction.nocache.js in a myaction folder).
To make it work, you need to align map your servlet to /myaction/myActionService (instead of /com.google.gwt.myaction.client.MyAction/myaction)

On Tuesday, June 19, 2018 at 9:38:59 AM UTC+2, Joyce wrote:
Do you have an idea how I can fix that problem? 
I set my path to @RemoteServiceRelativePath("myActionService") and the url in my web.xml is the following: "/com.google.gwt.myaction.client.client.MyAction/myaction". Is there an other way how to set the url? Or how can I tell GWT to use a different url for the service? I tried changing both parameters but in my browser the error description didn't change. It seems to me that the url is configured somewhere else. Thank you!!

Am Montag, 18. Juni 2018 13:16:29 UTC+2 schrieb Jens:

This means GWT has made a request to your server but the servlet is not registered at the expected location, thus the server responds with a 404 not found status (take a look in your network inspector in the browser). You either have to update your web.xml or tell GWT to use a different url for the service. For the latter take a look at the javadoc of @RemoteServiceRelativePath for details.

-- J.

You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment