Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 29672 invoked from network); 18 Oct 2003 10:52:34 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 18 Oct 2003 10:52:34 -0000 Received: (qmail 73882 invoked by uid 500); 18 Oct 2003 10:52:13 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 73860 invoked by uid 500); 18 Oct 2003 10:52:13 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 73845 invoked from network); 18 Oct 2003 10:52:13 -0000 Received: from unknown (HELO moutng.kundenserver.de) (212.227.126.185) by daedalus.apache.org with SMTP; 18 Oct 2003 10:52:13 -0000 Received: from [212.227.126.205] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1AAogu-0003Di-00 for tomcat-user@jakarta.apache.org; Sat, 18 Oct 2003 12:52:12 +0200 Received: from [80.128.27.175] (helo=cyberspaceroad.com) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1AAogt-00041W-00 for tomcat-user@jakarta.apache.org; Sat, 18 Oct 2003 12:52:11 +0200 Message-ID: <3F911B30.5070607@cyberspaceroad.com> Date: Sat, 18 Oct 2003 12:51:28 +0200 From: Adam Hardy User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030925 X-Accept-Language: en, en-us, de-de MIME-Version: 1.0 To: Tomcat Users List Subject: Re: JavaMail Session JNDI Resource and Authentication References: <3F8E724E.7050500@schildbach.de> In-Reply-To: <3F8E724E.7050500@schildbach.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Andreas, I'm planning on implementing this at some point soon too so I thought I'd have a look to see what's up. I googled on javamail.providers and your message here was one of the results that came up first! Anyway, I couldn't find anything descriptive of your problem, but a couple of ideas spring to mind: are you accessing the server via a proxy server / firewall? Also are you using send() or sendMessage()? Check this one: http://java.sun.com/products/javamail/FAQ.html#connectsend Another question to ask: are you using SSL to authenticate when you shouldn't? Or vice-versa? Adam On 10/16/2003 12:26 PM Andreas Schildbach wrote: > Hello everyone, > > I am trying to set up a JavaMail Session JNDI Resource to an SMTP server > that requires authentication. In the JavaMail documentation I could not > find how to supply a password in the Session Properties. However, I > found a few Google references to "mail.smtp.password" and > "mail.password". I tried both, but each time I get an > javax.mail.AuthenticationFailedException. > > I am using Tomcat 4.1.27 and JavaMail 1.3.1 (JAF 1.02). OS: Windows XP > > Can anyone help me find my error, please? > > Here is the debug output from JavaMail: > > DEBUG: JavaMail version 1.3.1 > DEBUG: java.io.FileNotFoundException: > C:\j2sdk1.4.2\jre\lib\javamail.providers (The system cannot fi > nd the file specified) > DEBUG: !anyLoaded > DEBUG: not loading resource: /META-INF/javamail.providers > DEBUG: successfully loaded resource: /META-INF/javamail.default.providers > DEBUG: Tables of loaded providers > DEBUG: Providers Listed By Class Name: > {com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPOR > T,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], > com.sun.mail.imap.IMAPStore=javax.mai > l.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, > Inc], com.sun.mail.pop3.POP3Stor > e=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun > Microsystems, Inc]} > DEBUG: Providers Listed By Protocol: > {imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStor > e,Sun Microsystems, Inc], > pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Micros > ystems, Inc], > smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun > Microsyste > ms, Inc]} > DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map > DEBUG: !anyLoaded > DEBUG: not loading resource: /META-INF/javamail.address.map > DEBUG: java.io.FileNotFoundException: > C:\j2sdk1.4.2\jre\lib\javamail.address.map (The system cannot > find the file specified) > DEBUG: getProvider() returning > javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Su > n Microsystems, Inc] > DEBUG SMTP: useEhlo true, useAuth true > > And here is the resource definition in my server.xml: > > > > > mail.debugtrue > mail.transport.protocolsmtp > > mail.smtp.hostmyserver > mail.smtp.port25 > mail.smtp.authtrue > mail.smtp.usermyusername > mail.smtp.passwordmypassword > > > -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org