I have the following in my config file for my application at http://cb-test.pconfig.cloudbees.net/ :
%production.mail.smtp.host=smtp.sendgrid.net
%production.mail.smtp.port=587
%production.mail.smtp.user=cloudbees_pconfig
%production.mail.smtp.pass=[edited]
%production.mail.smtp.protocol=smtps
%production.mail.smtp.channel=starttls
%production.mail.debug=true
I have checked to make sure my login and password are correct but I still get the following authentication error:
Feb 18, 2012 7:53:35 PM com.staxnet.appserver.utils.AppServerConfiguration readAppServerConfig
INFO: loading app config: /var/staxapps/8767/appserver.xml
Feb 18, 2012 7:53:35 PM net.stax.appserver.webapp.WebAppEngine <init>
INFO: Add system property: SENDGRID_SMTP_HOST=smtp.sendgrid.net
Feb 18, 2012 7:53:35 PM net.stax.appserver.webapp.WebAppEngine <init>
INFO: Add system property: SENDGRID_USERNAME=cloudbees_pconfig
Feb 18, 2012 7:53:35 PM net.stax.appserver.webapp.WebAppEngine <init>
INFO: Add system property: SENDGRID_PASSWORD=spxq26kq
Feb 18, 2012 7:53:35 PM com.staxnet.appserver.TomcatServerBase initConfiguration
INFO: Creating Tomcat server configuration at /var/staxapps/8767/staxcat/work
Feb 18, 2012 7:53:35 PM net.stax.appserver.admin.AdminEngine createAdminHttpConnector
INFO: Initializing admin-http-connector protocol: org.apache.coyote.http11.Http11Protocol
Feb 18, 2012 7:53:35 PM net.stax.appserver.webapp.WebAppEngine createWebContexts
INFO: loading app [] from /var/staxapps/8767/staxcat/install/webapp.war
Feb 18, 2012 7:53:35 PM net.stax.appserver.webapp.WebAppEngine createWebContexts
WARNING: tools.jar is not in the classpath
Feb 18, 2012 7:53:35 PM net.stax.appserver.webapp.WebAppEngine createWebContexts
INFO: application reloading is enabled
Feb 18, 2012 7:53:35 PM net.stax.appserver.webapp.WebAppEngine createMainHttpConnector
INFO: Initializing http-connector protocol: org.apache.coyote.http11.Http11Protocol
Feb 18, 2012 7:53:35 PM net.stax.appserver.webapp.WebAppEngine applyParametersToObject
INFO: http-connector - applied compressableMimeType=text/html,text/xml,text/javascript,text/css,application/json
Feb 18, 2012 7:53:35 PM net.stax.appserver.webapp.WebAppEngine applyParametersToObject
INFO: http-connector - applied maxThreads=11
Feb 18, 2012 7:53:35 PM net.stax.appserver.webapp.WebAppEngine applyParametersToObject
INFO: http-connector - applied server=Apache
Feb 18, 2012 7:53:35 PM net.stax.appserver.webapp.WebAppEngine applyParametersToObject
INFO: http-connector - applied compression=10
Feb 18, 2012 7:53:35 PM org.apache.catalina.startup.Embedded start
INFO: Starting tomcat server
Feb 18, 2012 7:53:36 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
Feb 18, 2012 7:53:36 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
Feb 18, 2012 7:53:36 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/mnt/var/staxapps/8767/staxcat/install/webapp.war/WEB-INF/lib/geronimo-servlet_2.5_spec-1.2.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Feb 18, 2012 7:53:41 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-9767
Feb 18, 2012 7:53:41 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-9767
Feb 18, 2012 7:53:41 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8767
Feb 18, 2012 7:53:41 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8767
DEBUG: setDebug: JavaMail version 1.4.3
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "smtp.sendgrid.net", port 587, isSSL false
220 mi12 ESMTP service ready
DEBUG SMTP: connected to host "smtp.sendgrid.net", port: 587
EHLO domU-12-31-39-09-D8-B1.compute-1.internal
250-mi12
250-8BITMIME
250-SIZE 20480000
250-AUTH=PLAIN LOGIN
250-AUTH PLAIN LOGIN
250 STARTTLS
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Found extension "SIZE", arg "20480000"
DEBUG SMTP: Found extension "AUTH=PLAIN", arg "LOGIN"
DEBUG SMTP: Found extension "AUTH", arg "PLAIN LOGIN"
DEBUG SMTP: Found extension "STARTTLS", arg ""
STARTTLS
220 Begin TLS negotiation now
EHLO domU-12-31-39-09-D8-B1.compute-1.internal
250-mi12
250-8BITMIME
250-SIZE 20480000
250-AUTH=PLAIN LOGIN
250 AUTH PLAIN LOGIN
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Found extension "SIZE", arg "20480000"
DEBUG SMTP: Found extension "AUTH=PLAIN", arg "LOGIN"
DEBUG SMTP: Found extension "AUTH", arg "PLAIN LOGIN"
DEBUG SMTP: Attempt to authenticate
DEBUG SMTP: check mechanisms: LOGIN PLAIN DIGEST-MD5 NTLM
AUTH LOGIN
334 VXNlcm5hbWU6
Y2xvdWRiZWVzX3Bjb25maWc=
334 UGFzc3dvcmQ6
c3VnYXJsaXBzNDI=
535 Authentication failed: Bad username / password
Any ideas as to why the error?
TYIA
SMTP_HOST_NAME = System.getProperty("SENDGRID_SMTP_HOST");
SMTP_AUTH_USER = System.getProperty("SENDGRID_USERNAME");
SMTP_AUTH_PWD = System.getProperty("SENDGRID_PASSWORD");
Have you tried that?
> --
> You received this message because you are subscribed to the Google Groups
> "play-framework" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/play-framework/-/IKr1xS8UHQEJ.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to
> play-framewor...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/play-framework?hl=en.