Sending Test Mail Doesn't Work or Causes Services that Depends on it to Fail
症状
atlassian-confluence.log
に次のメッセージが表示される。
2013-03-26 11:11:24,745 WARN [TP-Processor12] [atlassian.upm.pac.PacClientImpl] unknown Error when querying application info from MPAC: com.atlassian.marketplace.client.MpacException: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
-- referer: http://confluence.atlassian.com/authenticate.action?destination=/admin/mail/dosendtestemail.action | url: /admin/mail/dosendtestemail.action | userName: admin
原因
The contents of the server.xml are not formatted accordingly. Usually How do I configure Confluence to use Gmail as the mail server? has the right source for setting up the resource.
Double check for the contents to be in the correct place and tags, such as the example below:
/*
<Resource name="mail/Session" ... stuff here ...
/>
*/
- /* and */ do not work on xml, you need to use proper escaping such as <!-- while inside here all will be escaped and close with -->
Also could occur something similar to this, while the <Resource ... is out of <Context ...
<Engine name="Standalone" defaultHost="localhost" debug="0">
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false">
<Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true">
<!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties -->
</Context>
<Resource name="mail/Session" ... mail stuff here ...
/>
<Manager pathname="" />
</Host>
</Engine>
ソリューション
As the cause is for malformed or problematic content inside the server.xml file, please double check for anything out of place.
Last modified on Mar 30, 2016
Powered by Confluence and Scroll Viewport.