Sending mail through JNDI mailserver fails - NamingException - MailSessionFactory missing

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Fixed
    • 3.13
    • Component/s: None

      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)
      

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

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

              Created:
              Updated:
              Resolved:

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