Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6594209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:46:51+00:00 2026-05-25T17:46:51+00:00

I just written simple RPC call, when i tried i get the below error,

  • 0

I just written simple RPC call, when i tried i get the below error, could you please help me out to fix this..

[WARN] 404 - POST /com.sribalajiele.gwt.client.SriBalajiEle/emailRpcService (127.0.0.1) 
Email Failure404 
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 404 NOT_FOUND</title>

The code like below.

/*
 * 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<WriteToUsForm> 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");
    }
}

In web.xml:

<servlet>
    <servlet-name>emailService</servlet-name>
    <servlet-class>com.sribalajiele.gwt.client.server.EmailRpcServiceImpl</servlet-class>
</servlet>

<servlet-mapping>
    <servlet-name>emailService</servlet-name>
    <url-pattern>sriBalajiEle/emailRpcService</url-pattern>
</servlet-mapping>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:46:52+00:00Added an answer on May 25, 2026 at 5:46 pm
    Finally i could correct my self, may be this is use full for others.
    
    1) @RemoteServiceRelativePath("emailRpcService")
    public interface EmailRpcService extends RemoteService {
    
    2) In *Module*.gwt.xml
    <servlet class="com.sribalajiele.ui.server.EmailRpcServiceImpl" path="/emailRpcService"/>
    
    3) Register your servlet in web.xml
    <servlet>
            <servlet-name>eamilService</servlet-name>
            <servlet-class>com.sribalajiele.ui.server.EmailRpcServiceImpl</servlet-class>
        </servlet>
        <servlet-mapping> 
            <servlet-name>eamilService</servlet-name> 
            <url-pattern>/com.sribalajiele.ui.SriBalaji/emailRpcService</url-pattern> 
        </servlet-mapping>
    
    4) Usage:
    
      final EmailRpcServiceAsync emailRpcServiceAsync = (EmailRpcServiceAsync) GWT.create(EmailRpcService.class);
          ServiceDefTarget serviceDef = (ServiceDefTarget) emailRpcServiceAsync;
          serviceDef.setServiceEntryPoint(GWT.getModuleBaseURL() + "emailRpcService");
    emailRpcServiceAsync.sendEmail(parameter, new AsyncCall()) {
    onSuccess() { }
    onFailure() { }
    }
    

    Hope this will help…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written this simple bit of jQuery that swaps out the containing ul's
I'm just starting to learn the C programming language. I've written this simple piece
Ive written a Word addin in VS 2008 thats pretty simple, just adds a
I have written a following code to get just the file name without extension
I've just written a simple FTP console app to upload files on a local
I've just written (in Perl) a simple web service that displays a web form
I've written this very simple function to replace a file extension using LINQ in
OK, I've just written a very simple VBA script that goes off and grabs
this is more theoretical question. I have written simple chat with my friend. We
Below, I have written simple code that re-creates problems that have emerged as my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.