Mail server at location [java:comp/env/mail/GmailSmtpServer] is not of required type javax.mail.Session
When adding a JNDI setting to an email server (especially if you are connecting your instance to Gmail), the following error is displayed:
The mail settings you entered were not valid. Error thrown was: Mail server at location [java:comp/env/mail/GmailSmtpServer] is not of required type javax.mail.Session.
As explained on Configuring JIRA to send SMTP Email, you need to ensure that the files javax.
mail-X.X.X.jar, javax. and
activation-X.X.jar exist only in the <
The error occurs if the files exist both in
<JIRA-Install>/atlassian-JIRA/WEB-INF/lib and <.
Removing the duplicate files will solve the problem.
- Shutdown JIRA;
Move (do not copy) javax.
- Restart JIRA and attempt to reconfigure your mail server again.
Was this helpful?
Thanks for your feedback!