标签:confluence

一看必会系列:confluence 配置邮件服务器

Setting Up a Mail Session for the Confluence Distribution

1 停服务
Stop Confluence.

移动

<confluence-install>\confluence\WEB-INF\lib\mail-x.x.x.jar

到<confluence-install>\lib

———-注意, 放在第一个context 不然会报找不到 mail
Edit the <confluence-install>\conf\server.xml
增加内容到原有的 <context>   </Context>之间

下面是增加内容
<Resource name="mail/GmailSMTPServer"
    auth="Container"
    type="javax.mail.Session"
    mail.smtp.host="smtp.gmail.com"
    mail.smtp.port="465"
    mail.smtp.auth="true"
    mail.smtp.user="yourEmailAddress@gmail.com"
    password="yourPassword"
    mail.smtp.starttls.enable="true"
    mail.transport.protocol="smtps"
    mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
/>

重启服务

------中间广告---------

Go to  > General Configuration > Mail Servers.

亲加以下配置 JNDI位置

java:comp/env/mail/GmailSMTPServer

这个名字是以前面的一致

Resource name="mail/GmailSMTPServer

 

结果 Your test message has been sent successfully to @qq.com.

————–排错—————
com.atlassian.mail.MailException: javax.naming.NameNotFoundException: Name [mail/GmailSMTPServer] is not bound in this Context. Unable to find [mail].

一看必会系列:confluence 不显示验证码的解决方案

真正的解决方案

Cause

This is caused because of missing fonts, due to which the application cannot perform graphics rendering. Although we support OpenJDK it’s likely that this issue was caused because, the package manager used to install Java didn’t install "Java fonts".

Resolution

  1. Install the JDK Fonts package on top of the Oracle JDK by running:

    sudo apt-get install deja*

 

 

 

下面的都没毛用,不用看

 

https://confluence.atlassian.com/confkb/captcha-image-does-not-display-when-confluence-is-hosted-on-a-non-english-system-310379212.html

Resolution

  • Restart Confluence

o configure System Properties in Linux installations:

  1. Edit the <installation-directory>/bin/setenv.sh file. 
  2. Find the section CATALINA_OPTS=

    (this is JAVA_OPTS= in Confluence 5.5 and earlier)

  3. Refer to the list of parameters in Recognized System Properties.

(info) Add all parameters in a space-separated list, inside the quotations.

 

 

Windows (starting from .bat file)

To Configure System Properties in Windows Installations When Starting from the .bat File:

  1. Edit the <installation-directory>/bin/setenv.bat file. 
  2. Find the section set CATALINA_OPTS=%CATALINA_OPTS%

    (this is JAVA_OPTS=%JAVA_OPTS% in Confluence 5.5 and earlier)
  3. Refer to the list of parameters in Recognized System Properties.

(info) Add all parameters in a space-separated list. Make sure to keep the string %CATALINA_OPTS% in place.