Configuring Mail Servers For GMAIL SSL

I followed the instructions for adding a JNDI connector to my server.xml file, setup the path, copied over the activaiton and mail jars to the confluence/jre/lib directory. But I'm still getting a no class found error:

...

Caused by: java.lang.NoClassDefFoundError: javax/mail/Authenticator

at org.apache.naming.factory.MailSessionFactory.getObjectInstance(MailSessionFactory.java:105)

at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)

at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)

at org.apache.naming.NamingContext.lookup(NamingContext.java:793)

at org.apache.naming.NamingContext.lookup(NamingContext.java:140)

at org.apache.naming.NamingContext.lookup(NamingContext.java:781)

at org.apache.naming.NamingContext.lookup(NamingContext.java:140)

at org.apache.naming.NamingContext.lookup(NamingContext.java:781)

at org.apache.naming.NamingContext.lookup(NamingContext.java:140)

at org.apache.naming.NamingContext.lookup(NamingContext.java:781)

at org.apache.naming.NamingContext.lookup(NamingContext.java:153)

at org.apache.naming.SelectorContext.lookup(SelectorContext.java:152)

at javax.naming.InitialContext.lookup(Unknown Source)

...

1 answer

This widget could not be displayed.

Hi Juan,

Judging from your issue description, it seems that you move the mail jar to a wrong directory. Please try to move it to <Confluence_Install_Dir>/lib/ directory if you are using the standalone version, restart and see how it goes.

If you are running Confluence using WAR, then you should moved it to <Tomcat 6 Install>/lib/ directory. Restart Toncat and see how it goes.

Hope it helps.

Cheers,
Septa Cahyadiputra

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

431 views 4 6
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you