2 Replies Latest reply on Mar 24, 2010 9:49 AM by Parimal Chauhan

    Email Sending Error

    Parimal Chauhan Newbie
      Hi All

      I have Configured my SMTP details in Components.xml as
      _______________________________________________________
      <mail:mail-session host="XXXXXX" port="XX" username="XXXXX" password="XXXXX" >
      ___________________________________________________________

      I have created XHTML for mail parameters as below
      __________________________________________________

      <m:message xmlns="http://www.w3.org/1999/xhtml"
          xmlns:m="http://jboss.com/products/seam/mail"
          xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:h="http://java.sun.com/jsf/html">
       
          <m:from name="#{messages.mailHeading}" address="#{messages.mailSender}" />
          <m:to address="abcd@abcd.com"/>
          <m:bcc  address="#{orderHdrEntity.hoMail}"  />
          <m:subject>Purchase Order from #{orderHdrEntity.mstSupplier.supplierName} </m:subject>

        <m:attachment fileName="PurchaseOrder.pdf" disposition="attachment">
          <ui:include src="/reports/po/pdf/poPDF.xhtml" />
        </m:attachment>

        
          <m:body>
              <p><h:outputText value="#{messages.POReport} :" /></p>
              <p></p>
          </m:body>
         
      </m:message>
      ____________________________________________________

      But it is giving error while calling
      ________________________________________________
      renderer.render("/mail/poMail.xhtml");

      ________________________________________________

      I tried with same SMTP configaration with simple JAVA Mail API, it is working fine..


      Error Trace is while sending mail with seam is,
      ____________________________________________________

      Impl.doFilter(SeamFilter.java:69)
      11:30:29,948 ERROR [STDERR]     at org.jboss.seam.web.HotDeployFilter.doFilter(H
      otDeployFilter.java:53)
      11:30:29,948 ERROR [STDERR]     at org.jboss.seam.servlet.SeamFilter$FilterChain
      Impl.doFilter(SeamFilter.java:69)
      11:30:29,948 ERROR [STDERR]     at org.jboss.seam.servlet.SeamFilter.doFilter(Se
      amFilter.java:158)
      11:30:29,948 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterCha
      in.internalDoFilter(ApplicationFilterChain.java:235)
      11:30:29,948 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterCha
      in.doFilter(ApplicationFilterChain.java:206)
      11:30:29,948 ERROR [STDERR]     at org.jboss.web.tomcat.filters.ReplyHeaderFilte
      r.doFilter(ReplyHeaderFilter.java:96)
      11:30:29,948 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterCha
      in.internalDoFilter(ApplicationFilterChain.java:235)
      11:30:29,948 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterCha
      in.doFilter(ApplicationFilterChain.java:206)
      11:30:29,948 ERROR [STDERR]     at org.apache.catalina.core.StandardWrapperValve
      .invoke(StandardWrapperValve.java:230)
      11:30:29,948 ERROR [STDERR]     at org.apache.catalina.core.StandardContextValve
      .invoke(StandardContextValve.java:175)
      11:30:29,948 ERROR [STDERR]     at org.jboss.web.tomcat.security.SecurityAssocia
      tionValve.invoke(SecurityAssociationValve.java:182)
      11:30:29,948 ERROR [STDERR]     at org.apache.catalina.authenticator.Authenticat
      orBase.invoke(AuthenticatorBase.java:432)
      11:30:29,948 ERROR [STDERR]     at org.jboss.web.tomcat.security.JaccContextValv
      e.invoke(JaccContextValve.java:84)
      11:30:29,948 ERROR [STDERR]     at org.apache.catalina.core.StandardHostValve.in
      voke(StandardHostValve.java:127)
      11:30:29,948 ERROR [STDERR]     at org.apache.catalina.valves.ErrorReportValve.i
      nvoke(ErrorReportValve.java:102)
      11:30:29,948 ERROR [STDERR]     at org.jboss.web.tomcat.service.jca.CachedConnec
      tionValve.invoke(CachedConnectionValve.java:157)
      11:30:29,948 ERROR [STDERR]     at org.apache.catalina.core.StandardEngineValve.
      invoke(StandardEngineValve.java:109)
      11:30:29,948 ERROR [STDERR]     at org.apache.catalina.connector.CoyoteAdapter.s
      ervice(CoyoteAdapter.java:262)
      11:30:29,948 ERROR [STDERR]     at org.apache.coyote.http11.Http11Processor.proc
      ess(Http11Processor.java:844)
      11:30:29,948 ERROR [STDERR]     at org.apache.coyote.http11.Http11Protocol$Http1
      1ConnectionHandler.process(Http11Protocol.java:583)
      11:30:29,948 ERROR [STDERR]     at org.apache.tomcat.util.net.JIoEndpoint$Worker
      .run(JIoEndpoint.java:446)
      11:30:29,948 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:619)
      11:30:29,948 ERROR [STDERR] Caused by: javax.mail.AuthenticationFailedException
      11:30:29,948 ERROR [STDERR]     at javax.mail.Service.connect(Service.java:306)
      11:30:29,948 ERROR [STDERR]     at javax.mail.Service.connect(Service.java:156)
      11:30:29,948 ERROR [STDERR]     at javax.mail.Service.connect(Service.java:105)
      11:30:29,948 ERROR [STDERR]     at org.jboss.seam.mail.ui.UIMessage.encodeEnd(UI
      Message.java:167)
      11:30:29,948 ERROR [STDERR]     ... 136 more
      11:30:41,543 ERROR [STDERR] javax.faces.FacesException
      11:30:41,543 ERROR [STDERR]     at org.jboss.seam.mail.ui.UIMessage.encodeEnd(UI
      Message.java:173)
      11:30:41,543 ERROR [STDERR]     at org.jboss.seam.ui.util.JSF.renderChild(JSF.ja
      va:181)
      11:30:41,543 ERROR [STDERR]     at org.jboss.seam.ui.util.JSF.renderChildren(JSF
      .java:163)
      11:30:41,543 ERROR [STDERR]     at org.jboss.seam.ui.facelet.RendererRequest.ren
      derFacelet(RendererRequest.java:136)
      11:30:41,543 ERROR [STDERR]     at org.jboss.seam.ui.facelet.RendererRequest.run
      (RendererRequest.java:103)
      11:30:41,543 ERROR [STDERR]     at org.jboss.seam.ui.facelet.FaceletsRenderer.re
      nder(FaceletsRenderer.java:43)
      11:30:41,543 ERROR [STDERR]     at com.criti.spectrum.ordermgmnt.purchaseorder.D
      ocumentMailerImpl.send(DocumentMailerImpl.java:68)
      11:30:41,543 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(
      Native Method)
      11:30:41,543 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(N
      ativeMethodAccessorImpl.java:39)
      11:30:41,543 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invo
      ke(DelegatingMethodAccessorImpl.java:25)
      11:30:41,543 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:5
      97)
      11:30:41,543 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invo
      keNext(MethodInvocation.java:112)
      11:30:41,559 ERROR [STDERR]     at org.jboss.ejb3.interceptor.InvocationContextI
      mpl.proceed(InvocationContextImpl.java:166)
      11:30:41,559 ERROR [STDERR]     at org.jboss.seam.intercept.EJBInvocationContext
      .proceed(EJBInvocationContext.java:44)
      11:30:41,559 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContex
      t.proceed(SeamInvocationContext.java:56)
      11:30:41,559 ERROR [STDERR]     at org.jboss.seam.transaction.RollbackIntercepto
      r.aroundInvoke(RollbackInterceptor.java:28)
      11:30:41,559 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContex
      t.proceed(SeamInvocationContext.java:68)
      11:30:41,559 ERROR [STDERR]     at org.jboss.seam.core.BijectionInterceptor.arou
      ndInvoke(BijectionInterceptor.java:77)
      11:30:41,559 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContex
      t.proceed(SeamInvocationContext.java:68)
      11:30:41,559 ERROR [STDERR]     at org.jboss.seam.core.ConversationInterceptor.a
      roundInvoke(ConversationInterceptor.java:65)
      11:30:41,559 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContex
      t.proceed(SeamInvocationContext.java:68)
      11:30:41,559 ERROR [STDERR]     at org.jboss.seam.bpm.BusinessProcessInterceptor
      .aroundInvoke(BusinessProcessInterceptor.java:51)
      11:30:41,559 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContex
      t.proceed(SeamInvocationContext.java:68)
      11:30:41,559 ERROR [STDERR]     at org.jboss.seam.core.MethodContextInterceptor.
      aroundInvoke(MethodContextInterceptor.java:44)
      11:30:41,559 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContex
      t.proceed(SeamInvocationContext.java:68)
      11:30:41,559 ERROR [STDERR]     at org.jboss.seam.persistence.EntityManagerProxy
      Interceptor.aroundInvoke(EntityManagerProxyInterceptor.java:29)
      11:30:41,559 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContex
      t.proceed(SeamInvocationContext.java:68)
      11:30:41,559 ERROR [STDERR]     at org.jboss.seam.persistence.HibernateSessionPr
      oxyInterceptor.aroundInvoke(HibernateSessionProxyInterceptor.java:30)
      11:30:41,559 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContex
      t.proceed(SeamInvocationContext.java:68)
      11:30:41,559 ERROR [STDERR]     at org.jboss.seam.intercept.RootInterceptor.invo
      ke(RootInterceptor.java:107)
      11:30:41,559 ERROR [STDERR]     at org.jboss.seam.intercept.SessionBeanIntercept
      or.aroundInvoke(SessionBeanInterceptor.java:50)
      11:30:41,559 ERROR [STDERR]     at sun.reflect.GeneratedMethodAccessor271.invoke
      (Unknown Source)
      11:30:41,559 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invo
      ke(DelegatingMethodAccessorImpl.java:25)
      11:30:41,559 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:5
      97)
      11:30:41,559 ERROR [STDERR]     at org.jboss.ejb3.interceptor.InvocationContextI
      mpl.proceed(InvocationContextImpl.java:118)
      11:30:41,559 ERROR [STDERR]     at org.jboss.ejb3.interceptor.EJB3InterceptorsIn
      terceptor.invoke(EJB3InterceptorsInterceptor.java:63)
      11:30:41,559 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invo
      keNext(MethodInvocation.java:101)
      11:30:41,559 ERROR [STDERR]     at org.jboss.ejb3.entity.TransactionScopedEntity
      ManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
      11:30:41,559 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invo
      keNext(MethodInvocation.java:101)
      11:30:41,559 ERROR [STDERR]     at org.jboss.ejb3.AllowedOperationsInterceptor.i
      nvoke(AllowedOperationsInterceptor.java:47)
      11:30:41,559 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invo
      keNext(MethodInvocation.java:101)
      11:30:41,559 ERROR [STDERR]     at org.jboss.aspects.tx.TxPolicy.invokeInCallerT
      x(TxPolicy.java:126)
      11:30:41,559 ERROR [STDERR]     at org.jboss.aspects.tx.TxInterceptor$Required.i
      nvoke(TxInterceptor.java:195)
      11:30:41,559 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invo
      keNext(MethodInvocation.java:101)
      11:30:41,559 ERROR [STDERR]     at org.jboss.aspects.tx.TxPropagationInterceptor
      .invoke(TxPropagationInterceptor.java:95)
      11:30:41,559 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invo
      keNext(MethodInvocation.java:101)
      11:30:41,559 ERROR [STDERR]     at org.jboss.ejb3.stateless.StatelessInstanceInt
      erceptor.invoke(StatelessInstanceInterceptor.java:62)
      11:30:41,559 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invo
      keNext(MethodInvocation.java:101)
      11:30:41,559 ERROR [STDERR]     at org.jboss.aspects.security.AuthenticationInte
      rceptor.invoke(AuthenticationInterceptor.java:77)
      11:30:41,559 ERROR [STDERR]     at org.jboss.ejb3.security.Ejb3AuthenticationInt
      erceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
      11:30:41,559 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invo
      keNext(MethodInvocation.java:101)
      11:30:41,559 ERROR [STDERR]     at org.jboss.ejb3.ENCPropagationInterceptor.invo
      ke(ENCPropagationInterceptor.java:46)
      11:30:41,559 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invo
      keNext(MethodInvocation.java:101)
      11:30:41,559 ERROR [STDERR]     at org.jboss.ejb3.asynchronous.AsynchronousInter
      ceptor.invoke(AsynchronousInterceptor.java:106)
      11:30:41,559 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invo
      keNext(MethodInvocation.java:101)
      11:30:41,559 ERROR [STDERR]     at org.jboss.ejb3.stateless.StatelessContainer.l
      ocalInvoke(StatelessContainer.java:240)
      11:30:41,559 ERROR [STDERR]     at org.jboss.ejb3.stateless.StatelessContainer.l
      ocalInvoke(StatelessContainer.java:210)
      11:30:41,559 ERROR [STDERR]     at org.jboss.ejb3.stateless.StatelessLocalProxy.
      invoke(StatelessLocalProxy.java:84)
      11:30:41,559 ERROR [STDERR]     at $Proxy462.send(Unknown Source)
      11:30:41,574 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(
      Native Method)
      11:30:41,574 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(N
      ativeMethodAccessorImpl.java:39)
      11:30:41,574 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invo
      ke(DelegatingMethodAccessorImpl.java:25)
      11:30:41,574 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:5
      97)
      11:30:41,574 ERROR [STDERR]     at org.jboss.seam.util.Reflections.invoke(Reflec
      tions.java:22)
      11:30:41,574 ERROR [STDERR]     at org.jboss.seam.intercept.RootInvocationContex
      t.proceed(RootInvocationContext.java:32)
      11:30:41,574 ERROR [STDERR]     at org.jboss.seam.intercept.ClientSideIntercepto
      r$1.proceed(ClientSideInterceptor.java:76)
      11:30:41,574 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContex
      t.proceed(SeamInvocationContext.java:56)
      11:30:41,574 ERROR [STDERR]     at org.jboss.seam.intercept.RootInterceptor.invo
      ke(RootInterceptor.java:107)
      11:30:41,574 ERROR [STDERR]     at org.jboss.seam.intercept.ClientSideIntercepto
      r.invoke(ClientSideInterceptor.java:54)
      11:30:41,574 ERROR [STDERR]     at org.javassist.tmp.java.lang.Object_$$_javassi
      st_seam_25.send(Object_$$_javassist_seam_25.java)
      11:30:41,574 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(
      Native Method)
      11:30:41,574 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(N
      ativeMethodAccessorImpl.java:39)
      11:30:41,574 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invo
      ke(DelegatingMethodAccessorImpl.java:25)
      11:30:41,574 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:5
      97)
      11:30:41,574 ERROR [STDERR]     at org.jboss.el.util.ReflectionUtil.invokeMethod
      (ReflectionUtil.java:335)
      11:30:41,574 ERROR [STDERR]     at org.jboss.el.util.ReflectionUtil.invokeMethod
      (ReflectionUtil.java:348)
      11:30:41,574 ERROR [STDERR]     at org.jboss.el.parser.AstPropertySuffix.invoke(
      AstPropertySuffix.java:58)
      11:30:41,574 ERROR [STDERR]     at org.jboss.el.parser.AstValue.invoke(AstValue.
      java:96)
      11:30:41,574 ERROR [STDERR]     at org.jboss.el.MethodExpressionImpl.invoke(Meth
      odExpressionImpl.java:276)
      11:30:41,574 ERROR [STDERR]     at com.sun.facelets.el.TagMethodExpression.invok
      e(TagMethodExpression.java:68)
      11:30:41,574 ERROR [STDERR]     at javax.faces.component.MethodBindingMethodExpr
      essionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
      11:30:41,574 ERROR [STDERR]     at com.sun.faces.application.ActionListenerImpl.
      processAction(ActionListenerImpl.java:102)
      11:30:41,574 ERROR [STDERR]     at javax.faces.component.UICommand.broadcast(UIC
      ommand.java:387)
      11:30:41,574 ERROR [STDERR]     at org.ajax4jsf.component.AjaxActionComponent.br
      oadcast(AjaxActionComponent.java:55)
      11:30:41,574 ERROR [STDERR]     at org.ajax4jsf.component.AjaxViewRoot.processEv
      ents(AjaxViewRoot.java:321)
      11:30:41,574 ERROR [STDERR]     at org.ajax4jsf.component.AjaxViewRoot.broadcast
      Events(AjaxViewRoot.java:296)
      11:30:41,574 ERROR [STDERR]     at org.ajax4jsf.component.AjaxViewRoot.processPh
      ase(AjaxViewRoot.java:253)
      11:30:41,574 ERROR [STDERR]     at org.ajax4jsf.component.AjaxViewRoot.processAp
      plication(AjaxViewRoot.java:466)
      11:30:41,574 ERROR [STDERR]     at com.sun.faces.lifecycle.InvokeApplicationPhas
      e.execute(InvokeApplicationPhase.java:82)
      11:30:41,574 ERROR [STDERR]     at com.sun.faces.lifecycle.Phase.doPhase(Phase.j
      ava:100)
      11:30:41,574 ERROR [STDERR]     at com.sun.faces.lifecycle.LifecycleImpl.execute
      (LifecycleImpl.java:118)
      11:30:41,574 ERROR [STDERR]     at javax.faces.webapp.FacesServlet.service(Faces
      Servlet.java:265)
      11:30:41,574 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterCha
      in.internalDoFilter(ApplicationFilterChain.java:290)
      11:30:41,574 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterCha
      in.doFilter(ApplicationFilterChain.java:206)
      11:30:41,574 ERROR [STDERR]     at org.jboss.seam.servlet.SeamFilter$FilterChain
      Impl.doFilter(SeamFilter.java:83)
      11:30:41,574 ERROR [STDERR]     at org.jboss.seam.web.IdentityFilter.doFilter(Id
      entityFilter.java:40)
      11:30:41,574 ERROR [STDERR]     at org.jboss.seam.servlet.SeamFilter$FilterChain
      Impl.doFilter(SeamFilter.java:69)
      11:30:41,574 ERROR [STDERR]     at org.jboss.seam.web.MultipartFilter.doFilter(M
      ultipartFilter.java:90)
      11:30:41,574 ERROR [STDERR]     at org.jboss.seam.servlet.SeamFilter$FilterChain
      Impl.doFilter(SeamFilter.java:69)
      11:30:41,574 ERROR [STDERR]     at org.jboss.seam.web.ExceptionFilter.doFilter(E
      xceptionFilter.java:64)
      11:30:41,574 ERROR [STDERR]     at org.jboss.seam.servlet.SeamFilter$FilterChain
      Impl.doFilter(SeamFilter.java:69)
      11:30:41,574 ERROR [STDERR]     at org.jboss.seam.web.RedirectFilter.doFilter(Re
      directFilter.java:45)
      11:30:41,574 ERROR [STDERR]     at org.jboss.seam.servlet.SeamFilter$FilterChain
      Impl.doFilter(SeamFilter.java:69)
      11:30:41,574 ERROR [STDERR]     at org.jboss.seam.web.CharacterEncodingFilter.do
      Filter(CharacterEncodingFilter.java:42)
      11:30:41,574 ERROR [STDERR]     at org.jboss.seam.servlet.SeamFilter$FilterChain
      Impl.doFilter(SeamFilter.java:69)
      11:30:41,574 ERROR [STDERR]     at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter
      (BaseXMLFilter.java:178)
      11:30:41,574 ERROR [STDERR]     at org.ajax4jsf.webapp.BaseFilter.handleRequest(
      BaseFilter.java:290)
      11:30:41,590 ERROR [STDERR]     at org.ajax4jsf.webapp.BaseFilter.processUploads
      AndHandleRequest(BaseFilter.java:368)
      11:30:41,590 ERROR [STDERR]     at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseF
      ilter.java:495)
      11:30:41,590 ERROR [STDERR]     at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Aj
      ax4jsfFilter.java:56)
      11:30:41,590 ERROR [STDERR]     at org.jboss.seam.servlet.SeamFilter$FilterChain
      Impl.doFilter(SeamFilter.java:69)
      11:30:41,590 ERROR [STDERR]     at org.jboss.seam.web.LoggingFilter.doFilter(Log
      gingFilter.java:60)
      11:30:41,590 ERROR [STDERR]     at org.jboss.seam.servlet.SeamFilter$FilterChain
      Impl.doFilter(SeamFilter.java:69)
      11:30:41,590 ERROR [STDERR]     at com.criti.spectrum.base.SessionIdFilter.doFil
      ter(SessionIdFilter.java:76)
      11:30:41,590 ERROR [STDERR]     at org.jboss.seam.servlet.SeamFilter$FilterChain
      Impl.doFilter(SeamFilter.java:69)
      11:30:41,590 ERROR [STDERR]     at org.jboss.seam.web.HotDeployFilter.doFilter(H
      otDeployFilter.java:53)
      11:30:41,590 ERROR [STDERR]     at org.jboss.seam.servlet.SeamFilter$FilterChain
      Impl.doFilter(SeamFilter.java:69)
      11:30:41,590 ERROR [STDERR]     at org.jboss.seam.servlet.SeamFilter.doFilter(Se
      amFilter.java:158)
      11:30:41,590 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterCha
      in.internalDoFilter(ApplicationFilterChain.java:235)
      11:30:41,590 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterCha
      in.doFilter(ApplicationFilterChain.java:206)
      11:30:41,590 ERROR [STDERR]     at org.jboss.web.tomcat.filters.ReplyHeaderFilte
      r.doFilter(ReplyHeaderFilter.java:96)
      11:30:41,590 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterCha
      in.internalDoFilter(ApplicationFilterChain.java:235)
      11:30:41,590 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterCha
      in.doFilter(ApplicationFilterChain.java:206)
      11:30:41,590 ERROR [STDERR]     at org.apache.catalina.core.StandardWrapperValve
      .invoke(StandardWrapperValve.java:230)
      11:30:41,590 ERROR [STDERR]     at org.apache.catalina.core.StandardContextValve
      .invoke(StandardContextValve.java:175)
      11:30:41,590 ERROR [STDERR]     at org.jboss.web.tomcat.security.SecurityAssocia
      tionValve.invoke(SecurityAssociationValve.java:182)
      11:30:41,590 ERROR [STDERR]     at org.apache.catalina.authenticator.Authenticat
      orBase.invoke(AuthenticatorBase.java:432)
      11:30:41,590 ERROR [STDERR]     at org.jboss.web.tomcat.security.JaccContextValv
      e.invoke(JaccContextValve.java:84)
      11:30:41,590 ERROR [STDERR]     at org.apache.catalina.core.StandardHostValve.in
      voke(StandardHostValve.java:127)
      11:30:41,590 ERROR [STDERR]     at org.apache.catalina.valves.ErrorReportValve.i
      nvoke(ErrorReportValve.java:102)
      11:30:41,590 ERROR [STDERR]     at org.jboss.web.tomcat.service.jca.CachedConnec
      tionValve.invoke(CachedConnectionValve.java:157)
      11:30:41,590 ERROR [STDERR]     at org.apache.catalina.core.StandardEngineValve.
      invoke(StandardEngineValve.java:109)
      11:30:41,590 ERROR [STDERR]     at org.apache.catalina.connector.CoyoteAdapter.s
      ervice(CoyoteAdapter.java:262)
      11:30:41,590 ERROR [STDERR]     at org.apache.coyote.http11.Http11Processor.proc
      ess(Http11Processor.java:844)
      11:30:41,590 ERROR [STDERR]     at org.apache.coyote.http11.Http11Protocol$Http1
      1ConnectionHandler.process(Http11Protocol.java:583)
      11:30:41,590 ERROR [STDERR]     at org.apache.tomcat.util.net.JIoEndpoint$Worker
      .run(JIoEndpoint.java:446)
      11:30:41,590 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:619)
      11:30:41,590 ERROR [STDERR] Caused by: javax.mail.AuthenticationFailedException
      11:30:41,590 ERROR [STDERR]     at javax.mail.Service.connect(Service.java:306)
      11:30:41,590 ERROR [STDERR]     at javax.mail.Service.connect(Service.java:156)
      11:30:41,590 ERROR [STDERR]     at javax.mail.Service.connect(Service.java:105)
      11:30:41,590 ERROR [STDERR]     at org.jboss.seam.mail.ui.UIMessage.encodeEnd(UI
      Message.java:167)
      11:30:41,590 ERROR [STDERR]     ... 136 more

        • 1. Re: Email Sending Error
          Thomas Küstermann Newbie

          Maybe the error occurs because of:



          Caused by: javax.mail.AuthenticationFailedException

          There is already a topic like yours.

          • 2. Re: Email Sending Error
            Parimal Chauhan Newbie
            Thanks for reply,

            But why it is throwing "javax.mail.AuthenticationFailedException"

            as i have said Same SMTP host, username, Password is working fine with sample java mail code...

            Is there any configuration that i am missing in component.xml,

            As i have shown earlier my component.xml have mail configuration is,

            -----------------------------------------------------------

            <mail:mail-session host="XXXXXX" port="XX" username="XXXXX" password="XXXXX" >

            ----------------------------------------------------------

            and second thing

            Can you Please tell me how to set property: mail.smtp.auth = "true" in components.xml ? (i dont have that mail-service.xml so i want to set it into components.xml).

            Any help will be appreciated..

            Thank you..