1 2 Previous Next 20 Replies Latest reply on Jan 17, 2013 1:22 AM by rehankhan

    Unable to send mail

    Deepak Sharma Newbie

      Hi All,

       

      I am unable to send email from google SMTP server account, while sending mail i got the following ERROR :

       

      15:27:38,796 INFO  [STDOUT] DEBUG: JavaMail version 1.4ea
      15:27:38,796 INFO  [STDOUT] DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jre1.5.0\lib\javamail.providers (The system cannot find the file specified)
      15:27:38,812 INFO  [STDOUT] DEBUG: !anyLoaded
      15:27:38,812 INFO  [STDOUT] DEBUG: not loading resource: /META-INF/javamail.providers
      15:27:38,812 INFO  [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
      15:27:38,812 INFO  [STDOUT] DEBUG: Tables of loaded providers
      15:27:38,812 INFO  [STDOUT] DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
      15:27:38,812 INFO  [STDOUT] DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
      15:27:38,812 INFO  [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
      15:27:38,812 INFO  [STDOUT] DEBUG: !anyLoaded
      15:27:38,812 INFO  [STDOUT] DEBUG: not loading resource: /META-INF/javamail.address.map
      15:27:38,812 INFO  [STDOUT] DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jre1.5.0\lib\javamail.address.map (The system cannot find the file specified)
      15:27:38,828 INFO  [STDOUT] DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
      15:27:38,843 INFO  [STDOUT] DEBUG SMTP: useEhlo true, useAuth false
      15:27:38,843 INFO  [STDOUT] DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 465, isSSL false
      15:37:39,343 INFO  [STDOUT] DEBUG SMTP: EOF: [EOF]
      15:37:39,343 INFO  [STDOUT] DEBUG SMTP: could not connect to host "smtp.gmail.com", port: 465, response: -1
      15:37:39,343 INFO  [DefaultCommandService] exception while executing command org.jbpm.pvm.internal.cmd.CompleteTaskCmd@2e835a
      org.jbpm.api.JbpmException: could not send email: javax.mail.internet.MimeMessage@15f6fd6
          at org.jbpm.pvm.internal.email.impl.MailSessionImpl.send(MailSessionImpl.java:60)
          at org.jbpm.jpdl.internal.activity.MailActivity.perform(MailActivity.java:44)
          at org.jbpm.jpdl.internal.activity.JpdlAutomaticActivity.execute(JpdlAutomaticActivity.java:15)
          at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60)
          at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:637)
          at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:597)
          at org.jbpm.pvm.internal.model.ExecutionImpl.signal(ExecutionImpl.java:398)
          at org.jbpm.pvm.internal.model.ExecutionImpl.signal(ExecutionImpl.java:384)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
          at org.jbpm.pvm.internal.model.ExecutionImpl_$$_javassist_30.signal(ExecutionImpl_$$_javassist_30.java)
          at org.jbpm.pvm.internal.task.TaskImpl.complete(TaskImpl.java:194)
          at org.jbpm.pvm.internal.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:49)
          at org.jbpm.pvm.internal.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:31)
          at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
          at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
          at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:54)
          at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
          at org.jbpm.pvm.internal.svc.TaskServiceImpl.completeTask(TaskServiceImpl.java:91)
          at com.tifr.jbpm.JbpmProcess.completeTask(JbpmProcess.java:131)
          at com.tifr.servlet.ControllerServlet.confirmLeave(ControllerServlet.java:171)
          at com.tifr.servlet.ControllerServlet.doPost(ControllerServlet.java:72)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
          at java.lang.Thread.run(Unknown Source)
      Caused by: javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
          at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1270)
          at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
          at javax.mail.Service.connect(Service.java:275)
          at javax.mail.Service.connect(Service.java:156)
          at javax.mail.Service.connect(Service.java:105)
          at org.jbpm.pvm.internal.email.impl.MailSessionImpl.send(MailSessionImpl.java:50)
          ... 46 more
      15:37:39,343 INFO  [STDOUT] could not send email: javax.mail.internet.MimeMessage@15f6fd6

       

      The jbpm.mail.properties file content is as follows:

       

      mail.smtps.starttls.enable=true
      mail.smtps.auth=true
      mail.smtp.host=smtp.gmail.com
      mail.smtp.port=465
      mail.protocol=smtps
      mail.from=myemail@gmail.com
      mail.user=myemail
      mail.password=password
      mail.smtp.quitwait=false
      mail.debug=true

       

      Could anyone help me out or if had something left to configured, please let me know.

       

      Thanks in Advance!!

       

      Deepak

        • 1. Re: Unable to send mail
          Dominic Umbeer Newbie

          Hey,

           

          i think you configured the wrong port number. Try port number 587.

           

          Or if this not works, maybe this page from google (https://mail.google.com/support/bin/answer.py?hl=en&answer=78775) can help you.

          • 2. Re: Unable to send mail
            Deepak Sharma Newbie

            Hey, Thanks for help!!

             

            I have changed the port no also, bt  no success

             

            Still i could not figure out where the problem is??

             

            Can u explain what should be the content of jbpm.mail.properties files for google mail smtp server to send mail??

             

            Regards

            Deepak

            • 3. Re: Unable to send mail
              Dominic Umbeer Newbie
              I don't know! I have try myself. Hopefully I can try it in the next days! Maybe someone else has some experience and can help!?
              • 4. Re: Unable to send mail
                Ronald van Kuijk Master

                from the faq Dominic pointed to: (account name == username)

                 

                Account Name: your full email address (including @gmail.com) Google Apps users, please enter username@your_domain.com

                • 5. Re: Unable to send mail
                  Ronald van Kuijk Master

                  oh, and from the same faq, the starttls should be enabled,,, the from the Sun docs

                   

                  mail.smtp.starttls.enablebooleanIf true, enables the use of the STARTTLS command (if supported by the server) to switch the connection to a TLS-protected connection before issuing any login commands.  Note that an appropriate trust store must configured so that the client will trust the server's certificate. Defaults to false.

                   

                   

                  All very easy to find with e.g. google.... (hint, hint )

                  • 6. Re: Unable to send mail
                    Ronald van Kuijk Master

                    And from the logging:

                     

                    javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
                    15:27:38,843 INFO  [STDOUT] DEBUG SMTP: useEhlo true, useAuth false
                    15:27:38,843 INFO  [STDOUT] DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 465, isSSL false

                    • 7. Re: Unable to send mail
                      Deepak Sharma Newbie

                      Thanks Ronald!!

                       

                      What does your last post indicate about logging?

                       

                      "isSSL=false" should be true??

                      • 8. Re: Unable to send mail
                        Ronald van Kuijk Master
                        Yes, and for that you need to select a different smtp provider. See the sun docs
                        • 9. Re: Unable to send mail
                          Ronald van Kuijk Master
                          oops, sorry, you already had this....
                          • 10. Re: Unable to send mail
                            Ronald van Kuijk Master

                            Well, at least that is what I saw (in a completely different env) myself.

                             

                            You could enable ssl logging to see if something happens in that regard

                            • 11. Re: Unable to send mail
                              Ronald van Kuijk Master

                              oh... and

                               

                              Note that if you're using the "smtps" protocol to access SMTP over SSL, all the properties would be named "mail.smtps.*".

                               

                              might also be related.

                               

                              http://www.rgagnon.com/javadetails/java-0570.html

                              • 12. Re: Unable to send mail
                                Ronald van Kuijk Master

                                Oh and it is

                                 

                                mail.transport.protocol=smtps

                                 

                                instead of

                                 

                                mail.protocol=smtps

                                 

                                Please be a little more careful, inventive, do a little more research yourself next time...  ;-)

                                 

                                (looks like this issue has nothing to do with jBPM)

                                • 13. Re: Unable to send mail
                                  Deepak Sharma Newbie

                                  hey it got worked!!!

                                   

                                  The thing was, we have to use "mail.smtps" instead of "mail.smtp", that simple

                                   

                                  Thanks Mr. Ronald your trick worked.

                                  • 14. Re: Unable to send mail
                                    ciccio ciccio Newbie

                                    I have the same problem.

                                    Im using jbpm 4.3 and jboss 5.0..

                                    Can u pls post the solution? (*jpdl.xml, jbpm.cgf.xml. jbpm.mail.properties)

                                    my jbpm.mail.properties

                                    mail.smtps.starttls.enable=true
                                    mail.smtps.auth=true
                                    mail.smtp.port=465
                                    mail.transport.protocol=smtps
                                    mail.user=mymail@gmail.com
                                    mail.password=pwd
                                    mail.debug=true
                                    mail.smtps.host=smtp.gmail.com
                                    

                                     

                                    my jbpm.cfg.xml is

                                    <?xml version="1.0" encoding="UTF-8"?>
                                    
                                    <jbpm-configuration jndi-name="java:/ProcessEngine">
                                    
                                      <import resource="jbpm.default.cfg.xml" />
                                      <import resource="jbpm.businesscalendar.cfg.xml" />
                                      <import resource="jbpm.tx.jta.cfg.xml" />
                                      <import resource="jbpm.jpdl.cfg.xml" />
                                      <import resource="jbpm.bpmn.cfg.xml" />
                                      <import resource="jbpm.identity.cfg.xml" />
                                      <import resource="jbpm.jobexecutor.cfg.xml" />
                                      <import resource="jbpm.console.cfg.xml" />
                                      <string name="jbpm.mail.smtp.host" value="smtp.gmail.com" />
                                    <string name="resource.mail.properties" value="jbpm.mail.properties" />
                                    </jbpm-configuration>
                                    

                                     

                                    and the result in console is:

                                    17:37:07,597 INFO  [STDOUT] DEBUG: JavaMail version 1.4ea
                                    17:37:07,613 INFO  [STDOUT] DEBUG: java.io.FileNotFoundException: C:\Programmi\Java\jdk1.6.0_13\jre\lib\javamail.provide
                                    rs (Impossibile trovare il file specificato)
                                    17:37:07,629 INFO  [STDOUT] DEBUG: !anyLoaded
                                    17:37:07,629 INFO  [STDOUT] DEBUG: not loading resource: /META-INF/javamail.providers
                                    17:37:07,644 INFO  [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
                                    17:37:07,644 INFO  [STDOUT] DEBUG: Tables of loaded providers
                                    17:37:07,644 INFO  [STDOUT] DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provid
                                    er[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail
                                    .Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.ma
                                    il.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail
                                    .Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Prov
                                    ider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STOR
                                    E,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
                                    17:37:07,644 INFO  [STDOUT] DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.ima
                                    p.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems,
                                     Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.m
                                    ail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.su
                                    n.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport
                                    ,Sun Microsystems, Inc]}
                                    17:37:09,316 INFO  [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
                                    17:37:09,332 INFO  [STDOUT] DEBUG: !anyLoaded
                                    17:37:09,332 INFO  [STDOUT] DEBUG: not loading resource: /META-INF/javamail.address.map
                                    17:37:09,332 INFO  [STDOUT] DEBUG: java.io.FileNotFoundException: C:\Programmi\Java\jdk1.6.0_13\jre\lib\javamail.address
                                    .map (Impossibile trovare il file specificato)
                                    17:37:09,347 INFO  [STDOUT] DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTran
                                    sport,Sun Microsystems, Inc]
                                    17:37:09,394 INFO  [STDOUT] DEBUG SMTP: useEhlo true, useAuth false
                                    17:37:09,394 INFO  [STDOUT] DEBUG SMTP: trying to connect to host "localhost", port 465, isSSL false
                                    17:37:10,472 INFO  [DefaultCommandService] exception while executing command org.jbpm.pvm.internal.cmd.StartProcessInsta
                                    nceCmd@c276e5
                                    org.jbpm.api.JbpmException: could not send email: javax.mail.internet.MimeMessage@2f38bb
                                            at org.jbpm.pvm.internal.email.impl.MailSessionImpl.send(MailSessionImpl.java:60)
                                            at org.jbpm.jpdl.internal.activity.MailActivity.perform(MailActivity.java:44)
                                            at org.jbpm.jpdl.internal.activity.JpdlAutomaticActivity.execute(JpdlAutomaticActivity.java:15)
                                            at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60)
                                            at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:656)
                                            at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:616)
                                            at org.jbpm.pvm.internal.model.ExecutionImpl.start(ExecutionImpl.java:217)
                                            at org.jbpm.pvm.internal.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:61)
                                            at org.jbpm.pvm.internal.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:37)
                                            at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
                                            at org.jbpm.pvm.internal.tx.JtaTransactionInterceptor.executeInNewTx(JtaTransactionInterceptor.java:87)
                                            at org.jbpm.pvm.internal.tx.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:66)
                                            at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
                                            at org.jbpm.pvm.internal.tx.JtaRetryInterceptor.executeWithRetry(JtaRetryInterceptor.java:52)
                                            at org.jbpm.pvm.internal.tx.JtaRetryInterceptor.execute(JtaRetryInterceptor.java:45)
                                            at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
                                            at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
                                            at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)
                                            at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceById(ExecutionServiceImpl.java:50)
                                            at org.jbpm.integration.console.ProcessManagementImpl.newInstance(ProcessManagementImpl.java:145)
                                            at org.jboss.bpm.console.server.ProcessMgmtFacade.newInstance(ProcessMgmtFacade.java:189)
                                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                            at java.lang.reflect.Method.invoke(Method.java:597)
                                            at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
                                            at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
                                            at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
                                            at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
                                            at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
                                            at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
                                            at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
                                            at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
                                            at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
                                            at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                                            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                                            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                            at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
                                            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                                            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                                            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                                            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
                                            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                                            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                                            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
                                            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                                            at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.jav
                                    a:126)
                                            at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java
                                    :70)
                                            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                                            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                                            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                                            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                                            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                                            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
                                            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
                                            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                                            at java.lang.Thread.run(Thread.java:619)
                                    Caused by: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 465;
                                      nested exception is:
                                            java.net.ConnectException: Connection refused: connect
                                    

                                    Why is it "localhost" instead of "smtp.gmail.com" ?????

                                    Where i'm wrong???

                                    TIA

                                    1 2 Previous Next