java.lang.NoClassDefFoundError: javax/mail/Authenticator

Atlassian JIRA | Brad Baker [Atlassian] | 7 years ago
  1. 0

    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. {code} 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) {code} 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.

    Atlassian JIRA | 7 years ago | Brad Baker [Atlassian]
    java.lang.NoClassDefFoundError: javax/mail/Authenticator
  2. 0

    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. {code} 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) {code} 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.

    Atlassian JIRA | 7 years ago | Brad Baker [Atlassian]
    java.lang.NoClassDefFoundError: javax/mail/Authenticator
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Why Class not found exception when using J2EE?

    Oracle Community | 1 decade ago | 843830
    java.lang.NoClassDefFoundError: javax/mail/Authenticator
  5. 0

    Tomcat - DataSource Exception

    Google Groups | 1 decade ago | Martin Huber
    java.lang.NoClassDefFoundError: tyrex/jdbc/xa/EnabledDataSource

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      javax/mail/Authenticator

      at org.apache.naming.factory.MailSessionFactory.getObjectInstance()
    2. Web Container Naming Utilities
      ResourceFactory.getObjectInstance
      1. org.apache.naming.factory.MailSessionFactory.getObjectInstance(MailSessionFactory.java:105)
      2. org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
      2 frames
    3. Java RT
      NamingManager.getObjectInstance
      1. javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
      1 frame
    4. Web Container Naming Utilities
      SelectorContext.lookup
      1. org.apache.naming.NamingContext.lookup(NamingContext.java:793)
      2. org.apache.naming.NamingContext.lookup(NamingContext.java:140)
      3. org.apache.naming.NamingContext.lookup(NamingContext.java:781)
      4. org.apache.naming.NamingContext.lookup(NamingContext.java:140)
      5. org.apache.naming.NamingContext.lookup(NamingContext.java:781)
      6. org.apache.naming.NamingContext.lookup(NamingContext.java:140)
      7. org.apache.naming.NamingContext.lookup(NamingContext.java:781)
      8. org.apache.naming.NamingContext.lookup(NamingContext.java:153)
      9. org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
      9 frames
    5. Java RT
      InitialContext.lookup
      1. javax.naming.InitialContext.lookup(InitialContext.java:392)
      1 frame
    6. com.atlassian.mail
      SMTPMailServerImpl.send
      1. com.atlassian.mail.server.impl.SMTPMailServerImpl.getJndiSession(SMTPMailServerImpl.java:161)
      2. com.atlassian.mail.server.impl.SMTPMailServerImpl.getSession(SMTPMailServerImpl.java:110)
      3. com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:169)
      3 frames
    7. com.atlassian.jira
      SendTestMail.doExecute
      1. com.atlassian.jira.web.action.admin.mail.SendTestMail.doExecute(SendTestMail.java:88)
      1 frame
    8. webwork.action
      ActionSupport.execute
      1. webwork.action.ActionSupport.execute(ActionSupport.java:153)
      1 frame