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

Having an error after setting up the Mail session

Matt Wang March 29, 2021

Hi, 

I've setup the mail session from the instruction below:

https://confluence.atlassian.com/doc/setting-up-a-mail-session-for-the-confluence-distribution-6328.html

 

- Edited the server.xml:

- Moved the 3 following files from the link above to  <confluence-install>\lib

- restarted the Confluence.

 

Still got the error below:

 

Cause

javax.servlet.ServletException: Servlet execution threw an exception
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:238)

caused by: java.util.ServiceConfigurationError: javax.mail.Provider: Provider com.sun.mail.imap.IMAPProvider not a subtype
    at java.util.ServiceLoader.fail(ServiceLoader.java:239)

Stack Trace:[hide]

javax.servlet.ServletException: Servlet execution threw an exception
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:238)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:46)
	at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:32)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:39)
	at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.lambda$doFilter$0(DelegatingPluginFilter.java:57)
......

Can anyone help me how to fix this?

 

Cheers

1 answer

0 votes
Vladislav Babin July 6, 2022

This question is old but I would leave a comment for those who encounter the same error: read the instruction at https://confluence.atlassian.com/doc/setting-up-a-mail-session-for-the-confluence-distribution-6328.html carefully. It says in plain: "Move (don't copy)"

If you do copy than you get the error above

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events