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

for JIRA Standalone, ship the mail-1.4.1 jar in common/lib (to prevent JNDI issue)

    XMLWordPrintable

Details

    Description

      A customer reporting a problem where they are using JNDI mail server intergration. However when this is the case the mail jar needs to be available to Tomcat.

      In their case they where running standalone and hence we could have shipped with the mail jar in the common/lib for this configuration.

      2009-10-26 23:22:06,022 http-8080-Processor22 ERROR janek.bogucki 84126x70x1 ubrobb http://jira.studylink.com:8080/secure/admin/SendTestMail.jspa [webwork.dispatcher.ServletDispatcher] Could not execute action
      java.lang.NoClassDefFoundError: javax/mail/Authenticator
      	at org.apache.naming.factory.MailSessionFactory.getObjectInstance(MailSessionFactory.java:105)
      	at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
      	at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
      	at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
      	at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
      	at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
      	at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
      	at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
      	at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
      	at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
      	at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
      	at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
      	at javax.naming.InitialContext.lookup(InitialContext.java:392)
      	at com.atlassian.mail.server.impl.SMTPMailServerImpl.getJndiSession(SMTPMailServerImpl.java:161)
      	at com.atlassian.mail.server.impl.SMTPMailServerImpl.getSession(SMTPMailServerImpl.java:110)
      	at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:169)
      	at com.atlassian.jira.web.action.admin.mail.SendTestMail.doExecute(SendTestMail.java:88)
      	at webwork.action.ActionSupport.execute(ActionSupport.java:153)
      

      We also should update the documentation as well

      http://confluence.atlassian.com/display/JIRA/Configuring+JIRA+to+Send+SMTP+Mail#ConfiguringJIRAtoSendSMTPMail-CommonProblems

      An anonymous post has indicate that this is necessary.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bbaker ɹǝʞɐq pɐɹq
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: