Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-12180

Sending mail through JNDI mailserver fails - NamingException - MailSessionFactory missing

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • 3.13
    • None
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      When JIRA Standalone is configured to send email through a mail server configured in the app server and exposed by JNDI (see our docs), sending mail breaks with an exception like:

      An error has occurred with sending the test email:
      com.atlassian.mail.MailException: javax.naming.NamingException: Could not create resource factory instance 
      [Root exception is java.lang.ClassNotFoundException: org.apache.naming.factory.MailSessionFactory]
      	at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:179)
      	at com.atlassian.jira.web.action.admin.mail.SendTestMail.doExecute(SendTestMail.java:88)
      ...
      Caused by: javax.naming.NamingException: Could not create resource factory instance
         [Root exception is java.lang.ClassNotFoundException: org.apache.naming.factory.MailSessionFactory]
      	at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:131)
      	at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
      	at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
      	at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
      

      Attachments

        1. imapd.pem
          1 kB
        2. JRA-12180.zip
          9 kB

        Issue Links

          Activity

            People

              jed Jed Wesley-Smith (Inactive)
              7ee5c68a815f Jeff Turner
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 3h
                  3h
                  Remaining:
                  Remaining Estimate - 3h
                  3h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified