The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting error while adding gmail as SMTP Mail Server for JIRA

Hemant Gupta
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 24, 2016

I am getting the following error while specifying JNDI value as

java:comp/env/mail/GmailSmtpServer
Referer URL: http://myhostname:8080/secure/admin/AddSmtpMailServer!default.jspa
java.lang.NoClassDefFoundError: javax/mail/Authenticator
java.lang.NoClassDefFoundError: javax/mail/Authenticator
	at org.apache.naming.factory.MailSessionFactory.getObjectInstance(MailSessionFactory.java:104) [catalina.jar:8.0.33]
	at org.apache.naming.factory.FactoryBase.getObjectInstance(FactoryBase.java:94) [catalina.jar:8.0.33]
	at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321) [?:1.8.0_102]
	at org.apache.naming.NamingContext.lookup(NamingContext.java:841) [catalina.jar:8.0.33]
	at org.apache.naming.NamingContext.lookup(NamingContext.java:152) [catalina.jar:8.0.33]
	at org.apache.naming.NamingContext.lookup(NamingContext.java:829) [catalina.jar:8.0.33]
	at org.apache.naming.NamingContext.lookup(NamingContext.java:152) [catalina.jar:8.0.33]
	at org.apache.naming.NamingContext.lookup(NamingContext.java:829) [catalina.jar:8.0.33]
	at org.apache.naming.NamingContext.lookup(NamingContext.java:152) [catalina.jar:8.0.33]
	at org.apache.naming.NamingContext.lookup(NamingContext.java:829) [catalina.jar:8.0.33]
	at org.apache.naming.NamingContext.lookup(NamingContext.java:166) [catalina.jar:8.0.33]
	at org.apache.naming.SelectorContext.lookup(SelectorContext.java:157) [catalina.jar:8.0.33]
	at javax.naming.InitialContext.lookup(InitialContext.java:417) [?:1.8.0_102]

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 24, 2016

Did you move the jar files as per documentation?