File Not Found While working with RPC

2009-08-31 Thread Aximilli302

Hello all,

I'm having a slight issue with making server calls. I have set up a
relitivly simple server, but am new to this, and have gotten most of
what i've learned off the internet.

At this point, the error is that the server can not be found. Here are
a few tidbits of my code, where the issue likely lies.

//Inside the Main Class
ServiceDefTarget endpoint = (ServiceDefTarget) myService;

endpoint.setServiceEntryPoint(/MyService);

myService.myMethod(lbl.getText(), user.getUserName(), new
AsyncCallbackString() {

@Override
public void onFailure(Throwable caught) {
System.out.println(Into the onfailure method);
lbl.setText(Failure to send);
System.out.println(caught.getCause());
}

@Override
public void onSuccess(String a) {
System.out.println(Sucess);
//Does everthing it's supposed to   
}
});


I have the MyService interface, and the MyServiceAsync.
The MyServiceImpl class returns a simple String

The XML class contains the following lines:
entry-point class='com.google.tabs.client.Tabs' /
  servlet path=/MyService
class=com.google.tabs.server.MyServiceImpl /


MyService is inside the .client class, while MyServiceImpl is
inside .server

Any thoughts?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: File Not Found While working with RPC

2009-08-31 Thread Aximilli302

The Exact error is:

Aug 31, 2009 9:37:02 AM
com.google.appengine.tools.development.LocalResourceFileServlet doGet
WARNING: No file found for: /MyService

On Aug 31, 9:38 am, Aximilli302 aximilli...@gmail.com wrote:
 Hello all,

 I'm having a slight issue with making server calls. I have set up a
 relitivly simple server, but am new to this, and have gotten most of
 what i've learned off the internet.

 At this point, the error is that the server can not be found. Here are
 a few tidbits of my code, where the issue likely lies.

 //Inside the Main Class
 ServiceDefTarget endpoint = (ServiceDefTarget) myService;

 endpoint.setServiceEntryPoint(/MyService);

 myService.myMethod(lbl.getText(), user.getUserName(), new
 AsyncCallbackString() {

 @Override
 public void onFailure(Throwable caught) {
 System.out.println(Into the onfailure method);
 lbl.setText(Failure to send);
 System.out.println(caught.getCause());
                                 }

 @Override
 public void onSuccess(String a) {
 System.out.println(Sucess);
 //Does everthing it's supposed to                                             
                   }
                 });

 I have the MyService interface, and the MyServiceAsync.
 The MyServiceImpl class returns a simple String

 The XML class contains the following lines:
 entry-point class='com.google.tabs.client.Tabs' /
   servlet path=/MyService
 class=com.google.tabs.server.MyServiceImpl /

 MyService is inside the .client class, while MyServiceImpl is
 inside .server

 Any thoughts?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: File Not Found While working with RPC

2009-08-31 Thread Rahul

Hi,
There should be another class called MyServiceAsync.java under client


On Aug 31, 10:41 am, Aximilli302 aximilli...@gmail.com wrote:
 The Exact error is:

 Aug 31, 2009 9:37:02 AM
 com.google.appengine.tools.development.LocalResourceFileServlet doGet
 WARNING: No file found for: /MyService

 On Aug 31, 9:38 am, Aximilli302 aximilli...@gmail.com wrote:

  Hello all,

  I'm having a slight issue with making server calls. I have set up a
  relitivly simple server, but am new to this, and have gotten most of
  what i've learned off the internet.

  At this point, the error is that the server can not be found. Here are
  a few tidbits of my code, where the issue likely lies.

  //Inside the Main Class
  ServiceDefTarget endpoint = (ServiceDefTarget) myService;

  endpoint.setServiceEntryPoint(/MyService);

  myService.myMethod(lbl.getText(), user.getUserName(), new
  AsyncCallbackString() {

  @Override
  public void onFailure(Throwable caught) {
  System.out.println(Into the onfailure method);
  lbl.setText(Failure to send);
  System.out.println(caught.getCause());
                                  }

  @Override
  public void onSuccess(String a) {
  System.out.println(Sucess);
  //Does everthing it's supposed to                                           
                      }
                  });

  I have the MyService interface, and the MyServiceAsync.
  The MyServiceImpl class returns a simple String

  The XML class contains the following lines:
  entry-point class='com.google.tabs.client.Tabs' /
    servlet path=/MyService
  class=com.google.tabs.server.MyServiceImpl /

  MyService is inside the .client class, while MyServiceImpl is
  inside .server

  Any thoughts?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: File Not Found While working with RPC

2009-08-31 Thread Aximilli302

That is there.

Myservice looks like this:

public interface MyService extends RemoteService{

public String myMethod(String s, String username);
}

MyServiceAsync looks like this:

public interface MyServiceAsync {
public void myMethod(String s, String username, AsyncCallbackString
callback);

}

MyServiceImpl looks like this:

public class MyServiceImpl extends RemoteServiceServlet implements
MyService {
public String myMethod(String s, String username) {
System.out.println(into myMethod, in the impl class);
s=It got to the server and was returned as this. The user is:  +
username;
return s;
}

On Aug 31, 9:53 am, Rahul coolrahul18...@gmail.com wrote:
 Hi,
 There should be another class called MyServiceAsync.java under client

 On Aug 31, 10:41 am, Aximilli302 aximilli...@gmail.com wrote:



  The Exact error is:

  Aug 31, 2009 9:37:02 AM
  com.google.appengine.tools.development.LocalResourceFileServlet doGet
  WARNING: No file found for: /MyService

  On Aug 31, 9:38 am, Aximilli302 aximilli...@gmail.com wrote:

   Hello all,

   I'm having a slight issue with making server calls. I have set up a
   relitivly simple server, but am new to this, and have gotten most of
   what i've learned off the internet.

   At this point, the error is that the server can not be found. Here are
   a few tidbits of my code, where the issue likely lies.

   //Inside the Main Class
   ServiceDefTarget endpoint = (ServiceDefTarget) myService;

   endpoint.setServiceEntryPoint(/MyService);

   myService.myMethod(lbl.getText(), user.getUserName(), new
   AsyncCallbackString() {

   @Override
   public void onFailure(Throwable caught) {
   System.out.println(Into the onfailure method);
   lbl.setText(Failure to send);
   System.out.println(caught.getCause());
                                   }

   @Override
   public void onSuccess(String a) {
   System.out.println(Sucess);
   //Does everthing it's supposed to                                         
                         }
                   });

   I have the MyService interface, and the MyServiceAsync.
   The MyServiceImpl class returns a simple String

   The XML class contains the following lines:
   entry-point class='com.google.tabs.client.Tabs' /
     servlet path=/MyService
   class=com.google.tabs.server.MyServiceImpl /

   MyService is inside the .client class, while MyServiceImpl is
   inside .server

   Any thoughts?- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---