users@glassfish.java.net

Glassfishv2u1-JavaMail Session and Gmail problem

From: <glassfish_at_javadesktop.org>
Date: Tue, 24 Jun 2008 02:35:14 PDT

Hello,
I am having a problem to configure my glassfish installation to work together with the Apache Continuum while sending Messages via Gmail.
I followed the instructions on the Continuum website to configure the mail session.
(http://continuum.apache.org/faqs.html#how-do-I-configure-Continuum-to-use-GMail-as-the-SMTP-server)
My MailSession configuration is in the attachment.
I'm from Germany and Gmail has here some legal issues so everything is called "googlemail.com". The account information works the exact same way in my email programm and its sending and receiving messages.
But in Glassfish i get the following error:

[#|2008-06-24T11:13:17.304+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|2008-06-24 11:13:17,303 [pool-1-thread-1] INFO org.codehaus.plexus.notification.notifier.Notifier:mail - Sending message: From '"Continuum@*******" <***************_at_googlemail.com>'.
|#]

[#|2008-06-24T11:13:17.304+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|2008-06-24 11:13:17,304 [pool-1-thread-1] INFO org.codehaus.plexus.notification.notifier.Notifier:mail - Recipient: To '<***********_at_googlemail.com>'.
|#]

[#|2008-06-24T11:13:17.305+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|DEBUG: JavaMail version 1.4.1|#]

[#|2008-06-24T11:13:17.306+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: not loading file: /usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/javamail.providers|#]

[#|2008-06-24T11:13:17.306+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: java.io.FileNotFoundException: /usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/javamail.providers (No such file or directory)|#]

[#|2008-06-24T11:13:17.307+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: !anyLoaded|#]

[#|2008-06-24T11:13:17.307+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: not loading resource: /META-INF/javamail.providers|#]

[#|2008-06-24T11:13:17.308+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: successfully loaded resource: /META-INF/javamail.default.providers|#]

[#|2008-06-24T11:13:17.309+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: Tables of loaded providers|#]

[#|2008-06-24T11:13:17.309+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
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]}|#]

[#|2008-06-24T11:13:17.309+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
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]}|#]

[#|2008-06-24T11:13:17.310+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map|#]

[#|2008-06-24T11:13:17.310+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: !anyLoaded|#]

[#|2008-06-24T11:13:17.311+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: not loading resource: /META-INF/javamail.address.map|#]

[#|2008-06-24T11:13:17.311+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: not loading file: /usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/javamail.address.map|#]

[#|2008-06-24T11:13:17.311+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: java.io.FileNotFoundException: /usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/javamail.address.map (No such file or directory)|#]

[#|2008-06-24T11:13:17.311+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: JavaMail version 1.4.1|#]

[#|2008-06-24T11:13:17.312+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: not loading file: /usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/javamail.providers|#]

[#|2008-06-24T11:13:17.312+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: java.io.FileNotFoundException: /usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/javamail.providers (No such file or directory)|#]

[#|2008-06-24T11:13:17.312+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: !anyLoaded|#]

[#|2008-06-24T11:13:17.313+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: not loading resource: /META-INF/javamail.providers|#]

[#|2008-06-24T11:13:17.314+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: successfully loaded resource: /META-INF/javamail.default.providers|#]

[#|2008-06-24T11:13:17.314+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: Tables of loaded providers|#]

[#|2008-06-24T11:13:17.314+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
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]}|#]

[#|2008-06-24T11:13:17.314+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
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]}|#]

[#|2008-06-24T11:13:17.315+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map|#]

[#|2008-06-24T11:13:17.315+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: !anyLoaded|#]

[#|2008-06-24T11:13:17.315+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: not loading resource: /META-INF/javamail.address.map|#]

[#|2008-06-24T11:13:17.316+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: not loading file: /usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/javamail.address.map|#]

[#|2008-06-24T11:13:17.316+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: java.io.FileNotFoundException: /usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/javamail.address.map (No such file or directory)|#]

[#|2008-06-24T11:13:17.316+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: setDebug: JavaMail version 1.4.1|#]

[#|2008-06-24T11:13:17.317+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG: mail.smtp.class property exists and points to com.sun.mail.smtp.SMTPTransport|#]

[#|2008-06-24T11:13:17.450+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
DEBUG SMTP: useEhlo true, useAuth true|#]

[#|2008-06-24T11:13:17.451+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=pool-1-thread-1;|
2008-06-24 11:13:17,451 [pool-1-thread-1] ERROR org.apache.maven.continuum.notification.ContinuumNotificationDispatcher:default - Error while trying to use the mail notifier.
org.codehaus.plexus.notification.NotificationException: Exception while sending message.
        at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendMessage(MailContinuumNotifier.java:566)
        at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.buildComplete(MailContinuumNotifier.java:387)
        at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendNotification(MailContinuumNotifier.java:254)
        at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDispatcher.java:199)
        at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDispatcher.java:159)
        at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete(DefaultContinuumNotificationDispatcher.java:103)
        at org.apache.maven.continuum.buildcontroller.DefaultBuildController.endBuild(DefaultBuildController.java:221)
        at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:175)
        at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:50)
        at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116)
        at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
        at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987)
        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.codehaus.plexus.mailsender.MailSenderException: Error while sending the message.
        at org.codehaus.plexus.mailsender.javamail.AbstractJavamailMailSender.send(AbstractJavamailMailSender.java:226)
        at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendMessage(MailContinuumNotifier.java:562)
        ... 14 more
Caused by: javax.mail.AuthenticationFailedException
        at javax.mail.Service.connect(Service.java:319)
        at org.codehaus.plexus.mailsender.javamail.AbstractJavamailMailSender.send(AbstractJavamailMailSender.java:212)
        ... 1

I'm new to using GlassFish and JavaMail so perhaps it is something rudimentary i'm missing.
[Message sent by forum member 's_weisser' (s_weisser)]

http://forums.java.net/jive/thread.jspa?messageID=282178