Mail server at location is not of required type javax.mail.Session

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

問題

The following error is displayed when adding a JNDI setting to an email server (especially if you are connecting your instance to Gmail). This is also commonly seen after an upgrade if you had JNDI configured for your email server.

The following appears in the atlassian-confluence.log:

An error has occurred with sending the test email:
java.lang.IllegalArgumentException: Mail server at location [java:comp/env/mail/GmailSMTPServer] is not of required type javax.mail.Session.

原因

As explained on Setting Up a Mail Session for the Confluence Distribution, you need to ensure that you move (don't copy) mail-x.x.x.jar from <confluence-install>\confluence\WEB-INF\lib to <confluence-install>\lib (x.x.x. represents the version numbers on the jar files in your installation).

Don't leave a renamed backup of the jar files in \confluence\WEB-INF\lib. Even with a different file name, the files will still be loaded as long as it remains in the directory.

回避策

Removing the duplicate file should solve the problem.

  1. Confluence をシャットダウンします。
  2. Delete the mail-x.x.x.jar from <confluence-install>\confluence\WEB-INF\lib
  3. Restart Confluence and attempt to reconfigure your mail server again.

ソリューション

This is being tracked at in the following for a permanent resolution:  CONF-43358 - Getting issue details... STATUS

 

最終更新日 2018 年 11 月 2 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.