Note that there are some explanatory texts on larger screens.

plurals
  1. POError 404 during GWT RPC jetty server
    text
    copied!<p>I just written simple RPC call, when i tried i get the below error, could you please help me out to fix this..</p> <pre><code>[WARN] 404 - POST /com.sribalajiele.gwt.client.SriBalajiEle/emailRpcService (127.0.0.1) Email Failure404 &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/&gt; &lt;title&gt;Error 404 NOT_FOUND&lt;/title&gt; </code></pre> <p>The code like below.</p> <pre><code>/* * Copyright (c) Balaji electricals AG 2011, All Rights Reserved */ package com.sribalajiele.gwt.client.client; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; /** * @author kdel. * This interface provides Email Service. * */ @RemoteServiceRelativePath("emailRpcService") public interface EmailRpcService extends RemoteService { public WriteToUsForm sendEmail(WriteToUsForm writeToUsForm) throws IllegalArgumentException; } /* * Copyright (c) Balaji electricals 2011, All Rights Reserved */ package com.sribalajiele.gwt.client.client; import com.google.gwt.user.client.rpc.AsyncCallback; /** * @author kdel * Async service for Email. */ public interface EmailRpcServiceAsync { void sendEmail(WriteToUsForm writeToUsForm, AsyncCallback&lt;WriteToUsForm&gt; asyncCallback) throws IllegalArgumentException; } public final class EmailRpcServiceImpl extends RemoteServiceServlet implements EmailRpcService { /** * Default serialVersionUID. */ private static final long serialVersionUID = 1L; @Override public WriteToUsForm sendEmail(WriteToUsForm writeToUsForm) throws IllegalArgumentException { System.out.println("send Email called"); } } </code></pre> <p>In <code>web.xml</code>:</p> <pre><code>&lt;servlet&gt; &lt;servlet-name&gt;emailService&lt;/servlet-name&gt; &lt;servlet-class&gt;com.sribalajiele.gwt.client.server.EmailRpcServiceImpl&lt;/servlet-class&gt; &lt;/servlet&gt; &lt;servlet-mapping&gt; &lt;servlet-name&gt;emailService&lt;/servlet-name&gt; &lt;url-pattern&gt;sriBalajiEle/emailRpcService&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; </code></pre>
 

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