Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-43358

Upgrading Confluence recreates the mail-x.x.x.jar file that is *moved* when creating a JNDI Connection.

      Summary

      Upgrading Confluence recreates the mail-x.x.x.jar file that is moved when creating a JNDI Connection.

      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).

      When you upgrade Confluence, the mail-x.x.x.jar file is recreated/kept in the installation folder. This causes issues when since email will not be sent when both files are in place.

      Steps to Reproduce

      1. Set up a JNDI SMTP connection
      2. Upgrade Confluence manually
      3. Notice the upgrade tasks do not remove the mail-x.x.x.jar

      Expected Results

      The upgrade should check to see if there is a JNDI connection originally and remove the mail-x.x.x.jar file

      Actual Results

      The below exception is thrown in the atlassian-confluence.log file:

      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.
      

      Workaround

      The workaround is detailed in the guide Mail server at location is not of required type javax.mail.Session.

      1. Shutdown Confluence
      2. Delete the mail-x.x.x.jar from <confluence-install>\confluence\WEB-INF\lib (x.x.x. represents the version numbers on the jar files in your installation)
      3. Restart Confluence and attempt to reconfigure your mail server again.

            [CONFSERVER-43358] Upgrading Confluence recreates the mail-x.x.x.jar file that is *moved* when creating a JNDI Connection.

            George Varghese made changes -
            QA Demo Status New: Not Needed [ 14332 ]
            QA Kickoff Status New: Not Needed [ 14236 ]
            Resolution New: Low Engagement [ 10300 ]
            Status Original: Gathering Impact [ 12072 ] New: Closed [ 6 ]
            George Varghese made changes -
            Labels Original: affects-server New: affects-server cleanup-seos-fy25
            Renata Dornelas made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 190770 ]
            Bugfix Automation Bot made changes -
            Support reference count New: 1
            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2888355 ] New: CONFSERVER Bug Workflow v4 [ 2981937 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2797977 ] New: JAC Bug Workflow v3 [ 2888355 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2715174 ] New: JAC Bug Workflow v2 [ 2797977 ]
            Owen made changes -
            Symptom Severity Original: Minor [ 14432 ] New: Severity 3 - Minor [ 15832 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2380843 ] New: JAC Bug Workflow [ 2715174 ]
            Status Original: Open [ 1 ] New: Gathering Impact [ 12072 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2272418 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2380843 ]

              Unassigned Unassigned
              ajean Andy J.
              Affected customers:
              1 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: