Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Configuring Mail Servers For GMAIL SSL

Juan R Bonfante October 14, 2012

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

0 votes
Septa Cahyadiputra
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 Leaders.
October 14, 2012

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
TAGS
AUG Leaders

Atlassian Community Events