Wednesday, July 10, 2019

Re: Help: Error in Call RPC - GWT , 404 the server responded with a status of 404 (Not Found)

com.emp.mid.web.wkf.Wkf is the name of your GWT module (here, probably the name of your gwt.xml file: com/emp/mid/web/wkf/Wkf.gwt.xml; though most of the time, I believe, people rename it to a shorter name, through the rename-to="" attribute in the gwt.xml file)
You can change the service URL on the client-side by casting your service "async" to a ServiceDefTarget and calling setServiceEntryPoint; but I'd rather suggest you fix the servlet mapping on the server-side, or using rename-to="com.emp.mid.web.wkf" in your gwt.xml (please note that this will also change the URL to the *.nocache.js, so update your HTML page too)

On Wednesday, July 10, 2019 at 11:54:44 AM UTC+2, Silvia wrote:
Introducir código aquí...

Hi all,

Sorry about my english,

I have a problem with any Error in Call RPC - GWT , 404 the server responded with a status of 404 (Not Found)

The trace of error is:

-----
(404) 404 Not Found <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /com.emp.mid.web.wkf.Wkf/Service. Reason:
<pre>    Not Found</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>            
                                       
----

I don't understand why gwt add a "Wkf" to the module address. I mean this should be: 

 /com.emp.mid.web.wkf/Service  

without "Wkf" particle

I'm calling the gwt module by means a HTML: Wkf.html

How can I change the module address in order gwt can find the service?



Can anybody help me?

Thanks in advance for some help,

Sil

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/395b2451-b6cf-4886-93f8-2f2c6a9c84e6%40googlegroups.com.

No comments:

Post a Comment