spring email funciona no jetty e nao no tomcat
28/01/2009 00:00
0
olá pessoal,

fiz este tutorial:

<!-- m --><a class="postlink" href="http://blog.danielfmartins.com/2007/03/18/e-mails-no-grails/">http://blog.danielfmartins.com/2007/03/ ... no-grails/</a><!-- m -->

funcionou certo rodando no jetty. quando crio o war e coloco no tomcat não funciona.

da este erro:


INFO&#58; Server startup in 56554 ms
[105546] errors.GrailsExceptionResolver java.lang.RuntimeException&#58; Trying to send an e-mail with empty body!
org.codehaus.groovy.runtime.InvokerInvocationException&#58; java.lang.RuntimeException&#58; Trying to send an e-mail with empty body!
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java&#58;290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java&#58;206)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java&#58;235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java&#58;206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java&#58;630)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java&#58;436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java&#58;374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java&#58;302)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java&#58;235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java&#58;206)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java&#58;235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java&#58;206)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java&#58;235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java&#58;206)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java&#58;235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java&#58;206)
at org.jsecurity.web.servlet.WebInterceptorFilter.doFilterInternal(WebInterceptorFilter.java&#58;106)
at org.jsecurity.web.servlet.SecurityContextFilter.doFilterInternal(SecurityContextFilter.java&#58;93)
at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java&#58;106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java&#58;235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java&#58;206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java&#58;233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java&#58;175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java&#58;128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java&#58;102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java&#58;109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java&#58;286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java&#58;844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java&#58;583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java&#58;447)
at java.lang.Thread.run(Thread.java&#58;619)
Caused by&#58; java.lang.RuntimeException&#58; Trying to send an e-mail with empty body!
at MailerService.send(MailerService.groovy&#58;49)
at NewUserController$_closure4.doCall(NewUserController.groovy&#58;136)
at NewUserController$_closure4.doCall(NewUserController.groovy)
at NewUserController$_closure3.doCall(NewUserController.groovy&#58;78)
at NewUserController$_closure3.doCall(NewUserController.groovy)
... 31 more
[Fatal Error] &#58;-1&#58;-1&#58; Premature end of file.
[Fatal Error] &#58;-1&#58;-1&#58; Premature end of file.


obrigado
Tags: Grails


0
ninguem pessoa...

estou usando o linux

me falaram que pode ser conflito com o exim4

alguem conhece?
02/02/2009 00:00



Ainda não faz parte da comunidade???

Para se registrar, clique aqui.


Aprenda Groovy e Grails com a Formação itexto!

Newsletter Semana Groovy

Assinar

Envie seu link!


Livro de Grails


/dev/All

Os melhores blogs de TI (e em português) em um único lugar!

 
Creative Commons
RSS Grails Brasil é mantido por itexto Consultoria.
Em caso de problemas contacte Henrique Lobo Weissmann (Kico) por e-mail: kico@itexto.com.br
Todo o conteúdo presente neste site adota o Creative Commons como licença padrão.
Ver: 4.14.0
itexto