Note that there are some explanatory texts on larger screens.

plurals
  1. POGWT RPC "404 not found" error. How do you get RPC to work on your own Apache server?
    primarykey
    data
    text
    <p>The RPC I implemented works fine in dev mode. But as soon as I copy the code into a real apache server the RPC stops working! <strong>How do you configure your GWT application so that the RPC will work on the apache server?</strong> I have found the GWT tutorial on RPC but it is not very helpful. <strong>Other links about RPC configuration would be very much appreciated!</strong></p> <hr> <p>I developed some GWT code. I implemented and got working an RPC client-server communication. When I say it is working... I mean that it works great in development mode. I can click and it interacts with the server as expected.</p> <p>Then when I do a GWT compile and copy the war directory into my apache server htdocs folder. I can view the website but when I click on the button that is supposed to initiate an RPC nothing happens. I check the Firefox-->tools-->web console and see "NAMEOFRPC 404 not found".</p> <p>Here is my WEB-INF web.xml:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"&gt; &lt;web-app&gt; &lt;!-- Servlets --&gt; &lt;servlet&gt; &lt;servlet-name&gt;NameOfRpc&lt;/servlet-name&gt; &lt;servlet-class&gt;com.company.nameOfModule.server.rpc.NameOfRpcImpl&lt;/servlet-class&gt; &lt;/servlet&gt; &lt;servlet-mapping&gt; &lt;servlet-name&gt;NameOfRpc&lt;/servlet-name&gt; &lt;url-pattern&gt;/nameOfModule&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; &lt;!-- Default page to serve --&gt; &lt;welcome-file-list&gt; &lt;welcome-file&gt;NameOfModule.html&lt;/welcome-file&gt; &lt;/welcome-file-list&gt; &lt;/web-app&gt; </code></pre> <p>Here is the firefox web-console error I get:</p> <pre><code>[16:50:58.792] POST http://SERVER/gwt/nameOfModule/nameOfModule/NameOfRpc [HTTP/1.1 404 Not Found 3065ms] </code></pre> <p>I copy the war folder into /SERVER/gwt and then rename it to nameOfModule. </p> <p><strong>Is there anything wrong with my WEB-INF/web.xml?</strong></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload