Grails远程处理插件RMI MissingMethodException

Grails远程处理插件RMI MissingMethodException,grails,grails-plugin,Grails,Grails Plugin,我想使用GrailsRemoting插件连接到远程RMI服务。 所以我使用grails安装插件远程处理命令安装了它。然后我创建了RemoteService.groovy,如下所示 class RemoteService { static remote = [ protocol: 'rmi', iface: RemoteInterface, host: 'localhost', port: '1199', ] } RemoteInterface.java在src/

我想使用GrailsRemoting插件连接到远程RMI服务。 所以我使用grails安装插件远程处理命令安装了它。然后我创建了RemoteService.groovy,如下所示

class RemoteService {
static remote = [
    protocol: 'rmi',
    iface: RemoteInterface,
    host: 'localhost',
    port: '1199',
]
}
RemoteInterface.java在src/java文件夹中定义:

public interface RemoteInterface{
   void sayHello(String name);
}
我还有以下控制器:

class MyController {
def remoteService
def index = {
    remoteService.sayHello("Andrey")
}
}

然后我启动应用程序并导航到,我得到sayHello-MissingMethodException。我找不到如何解决此问题。

请尝试在RemoteService中声明此方法,如下所示:

class RemoteService {
static remote = [
    protocol: 'rmi',
    iface: RemoteInterface,
    host: 'localhost',
    port: '1199',
]

void sayHello(String name){}
}