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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published yesterday in Confluence

Think you know shares vs. @mentions in Confluence? Take this collab quiz.

To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...

116 views 2 4
Read article

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