Pessoal estou enfrentando o seguinte err ao tentar executar uma chamada remota
Compiling module org.yournamehere.Main
Scanning for additional dependencies: file:/G:/Paulo/Paulo/Projetos/Net%20beans/Netbeans/Web/TesteGWT20/src/java/org/yournamehere/client/Main.java
Computing all possible rebind results for 'org.yournamehere.client.service.CidadeRemoteService'
Rebinding org.yournamehere.client.service.CidadeRemoteService
Invoking com.google.gwt.dev.javac.StandardGeneratorContext@1fc0cb0
Generating client proxy for remote service interface 'org.yournamehere.client.service.CidadeRemoteService'
[ERROR] Could not find an asynchronous version for the service interface org.yournamehere.client.service.CidadeRemoteService
A valid definition for the asynchronous version of interface 'org.yournamehere.client.service.CidadeRemoteService' would be:
[ERROR]
package org.yournamehere.client.service;
public interface CidadeRemoteServiceAsync {
void insert(java.lang.String object, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> arg2);
}
[ERROR] Errors in 'file:/G:/Paulo/Paulo/Projetos/Net%20beans/Netbeans/Web/TesteGWT20/src/java/org/yournamehere/client/Main.java'
[ERROR] Line 49: Failed to resolve 'org.yournamehere.client.service.CidadeRemoteService' via deferred binding
[ERROR] Cannot proceed due to previous errors
Minha classe RemoteService
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
@RemoteServiceRelativePath("cidadeService")
public interface CidadeRemoteService extends RemoteService{
void insert(String object);
}
Minha classe
import com.google.gwt.user.client.rpc.AsyncCallback;
public interface CidadeServiceAsync {
void insert(String object, AsyncCallback<String> callback);
}
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import org.yournamehere.client.service.CidadeRemoteService;
/**
*
* @author paulo
*/
public class CidadeRemoteServiceImpl extends RemoteServiceServlet implements CidadeRemoteService {
public void insert(String object) {
System.out.println("OPS DDEU CERTO");
}
}
Meu Arquivo Main.gwt.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-source/core/src/gwt-module.dtd">
<module>
<inherits name="com.google.gwt.user.User"/>
<inherits name='com.google.gwt.user.theme.standard.Standard'/>
<inherits name="com.google.gwt.user.theme.chrome.Chrome"/>
<inherits name="com.google.gwt.user.theme.dark.Dark"/>
<inherits name="com.google.gwt.i18n.I18N"/>
<inherits name="com.extjs.gxt.ui.GXT"/>
<inherits name="com.google.gwt.core.Core"/>
<inherits name="com.extjs.gxt.themes.Themes"/>
<inherits name="com.extjs.gxt.charts.Chart"/>
<entry-point class="org.yournamehere.client.Main"/>
<!-- Do not define servlets here, use web.xml -->
</module>
Minha class EntryPoint
import org.yournamehere.client.service.CidadeRemoteService;
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.mvc.AppEvent;
import com.extjs.gxt.ui.client.mvc.Dispatcher;
import com.extjs.gxt.ui.client.widget.Viewport;
import com.google.gwt.core.client.EntryPoint;
import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.GWT.UncaughtExceptionHandler;
import com.google.gwt.user.client.Window;
import org.yournamehere.client.service.CidadeServiceAsync;
//import com.google.gwt.user.client.rpc.ServiceDefTarget;
/**
* Main entry point.
*
* @author paulo
*/
public class Main implements EntryPoint {
private Viewport viewport;
private final BorderLayout layout = new BorderLayout();
private Dispatcher dispatcher;
private ExamplesModel model;
public Main(){
}
public void onModuleLoad() {
if (!GWT.isScript()) {
GWT.setUncaughtExceptionHandler(new UncaughtExceptionHandler() {
public void onUncaughtException(Throwable e) {
e.printStackTrace();
}
});
}
//O problema pelo que parece ocorre aqui, quando tiro essa linha funciona perfeitamente
CidadeServiceAsync service = (CidadeServiceAsync)GWT.create(CidadeRemoteService.class);
}
}
*/