search cancel

Unable to send Mail from IDM after the java upgrade to jdk1.8.0_261 (or later)

book

Article ID: 252932

calendar_today

Updated On:

Products

CA Identity Suite

Issue/Introduction

Unable to send Mail from IDM after the java upgrade to AdoptOpen jdk1.8.0_332. Fails with error

javax.naming.NameNotFoundException: Mail -- service jboss.naming.context.java.Mail. 

Environment

Identity Manager. 

Resolution

This issue was resolved by updating the javax.mail jar file located in the [wildlfy8.2]/modules/system/layers/base/javax/mail/api/main/ directory from the javax.mail-1.5.1.jar provided with Wildfly with a newer version: javax.mail-1.6.2.jar.

Update the module.xml in the same folder.  Change the path pointer from javax.mail-1.5.1.jar to point to the new version javax.mail-1.6.2.jar.

Additional Information

This issue has an environmental aspect as the send mail issue could not be reproduced internally regardless of the JDK version used.