Gente, eu vi no tutorial:
http://www.grails.org/Remoting+Plugin a parte de configuração para a utilização do httpinvoker:
tenho a minha classe de serviço com a configuração:
package pt
class CalendarioService {
static remote = [
protocol: 'http',
iface: pt.ptinovacao.be.corporative.service.ManageScheduleService,
host: '10.51.161.161',
port: '8223',
webcontext: 'beCorporativeWAR',
]
}
e no entanto ao tentar grails run-app é dado um erro enorme:
2010-04-19 15:33:31,362 [main] ERROR context.ContextLoader - Context initialization failed
org.springframework.beans.factory.access.BootstrapException: Error executing bootstraps; nested exception is java.lang.IllegalStateException: No bean class
specified on bean definition
at org.codehaus.groovy.grails.web.context.GrailsContextLoader.createWebApplicationContext(GrailsContextLoader.java:75)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:192)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
.
.
.
Caused by: java.lang.IllegalStateException: No bean class specified on bean definition
.
.
.
2010-04-19 15:33:32,299 [main] ERROR [localhost].[/AppCalendario] - Exception sending context initialized event to listener instance of class org.codehaus
.groovy.grails.web.context.GrailsContextLoaderListener
org.springframework.beans.factory.access.BootstrapException: Error executing bootstraps; nested exception is java.lang.IllegalStateException: No bean class specified on bean definition
.
.
.
2010-04-19 15:33:33,221 [main] ERROR core.StandardContext - Error listenerStart
2010-04-19 15:33:33,237 [main] ERROR core.StandardContext - Context [/AppCalendario] startup failed due to previous errors
Server running. Browse to <!-- m --><a class="postlink" href="http://localhost:8080/AppCalendario">http://localhost:8080/AppCalendario</a><!-- m -->
e ao acessar da erro 404
quando eu coloco chaves{} ao invez de colchetes []
package pt
class CalendarioService {
static remote = {
protocol: 'http',
iface: pt.ptinovacao.be.corporative.service.ManageScheduleService,
host: '10.51.161.161',
port: '8223',
webcontext: 'beCorporativeWAR',
}
}
Environment set to development
[groovyc] Compiling 2 source files to D:\Grails\workspace_grails\AppCalendario\target\classes
[groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, D:\Grails\workspace_grails\AppCalendario\grails-app\services\pt
\CalendarioService.groovy: 6: unexpected token: http @ line 6, column 19.
[groovyc] protocol: 'http',
[groovyc] ^
[groovyc]
[groovyc] 1 error
Compilation error: Compilation Failed
o que ocorre???
ele não está conseguindo resolver esse protocolo? ou eu estou fazendo errado????
obrigado pela atenção!