简体   繁体   中英

ocation of JavaMail Version 1.4.1 on weblogic 10.3

I am trying to send mail using javax.mail.* . I was getting an AuthenticationFailedException when calling the connect(host,username,password) method. When i enabled debug for javamail i found out that it was using JavaMail version 1.4.1 . I have the code deployed on Weblogic 10.3. When i added mail1-4.jar which uses JavaMail Version 1.4ea to the classpath it started working.

I am not able to find from which jar weblogic was picking up java mail version 1.4.1 . Any pointers?

Also what are the difference between java mail 1.4.1 and 1.4ea . I was able to figure out the reason of difference in behavioir by decompiling the code. But still which one should be preferred?

PS I have posted the same on CodeRanch forum also.

1.4.1 is newer. You can find the list of changes here . (1.4ea is the same as 1.4)

Most likely it's this change that's causing the problem:

  • do SMTP authentication if connect is called with username and password even if mail.smtp.auth is not set

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM