java.lang.NoClassDefFoundError: javax/activation/DataContentHandler

Jenkins JIRA | dhouthoo | 9 years ago
  1. 0

    Mail notification in a custom project (shell script) fails. It looks like activation.jar is not loaded: Sending e-mails to: xxx@xxx.xxx FATAL: javax/activation/DataContentHandler java.lang.NoClassDefFoundError: javax/activation/DataContentHandler at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1346) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205) at javax.activation.MailcapCommandMap.getDataContentHandler(MailcapCommandMap.java:590) at javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java: 550) at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:611) at javax.activation.DataHandler.writeTo(DataHandler.java:315) at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:248) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1268) at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2012) at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1980) at javax.mail.Transport.send(Transport.java:97) at hudson.tasks.MailSender.execute(MailSender.java:65) at hudson.tasks.Mailer._perform(Mailer.java:73) at hudson.tasks.Mailer.perform(Mailer.java:67) at hudson.model.Build$RunnerImpl.post2(Build.java:138) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:243) at hudson.model.Run.run(Run.java:595) at hudson.model.Build.run(Build.java:103) at hudson.model.ResourceController.execute(ResourceController.java:66) at hudson.model.Executor.run(Executor.java:59)

    Jenkins JIRA | 9 years ago | dhouthoo
    java.lang.NoClassDefFoundError: javax/activation/DataContentHandler
  2. 0

    Mail notification in a custom project (shell script) fails. It looks like activation.jar is not loaded: Sending e-mails to: xxx@xxx.xxx FATAL: javax/activation/DataContentHandler java.lang.NoClassDefFoundError: javax/activation/DataContentHandler at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1346) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205) at javax.activation.MailcapCommandMap.getDataContentHandler(MailcapCommandMap.java:590) at javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java: 550) at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:611) at javax.activation.DataHandler.writeTo(DataHandler.java:315) at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:248) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1268) at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2012) at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1980) at javax.mail.Transport.send(Transport.java:97) at hudson.tasks.MailSender.execute(MailSender.java:65) at hudson.tasks.Mailer._perform(Mailer.java:73) at hudson.tasks.Mailer.perform(Mailer.java:67) at hudson.model.Build$RunnerImpl.post2(Build.java:138) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:243) at hudson.model.Run.run(Run.java:595) at hudson.model.Build.run(Build.java:103) at hudson.model.ResourceController.execute(ResourceController.java:66) at hudson.model.Executor.run(Executor.java:59)

    Jenkins JIRA | 9 years ago | dhouthoo
    java.lang.NoClassDefFoundError: javax/activation/DataContentHandler
  3. 0

    Exception from e-mail generation

    xplanner | 9 years ago | rhbauman
    java.lang.NoClassDefFoundError: javax/activation/DataContentHandler
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Deployment issues with Spring app in Tomcat 6.0

    Stack Overflow | 5 years ago | Alan Gairey
    java.lang.NoClassDefFoundError: org/springframework/context/MessageSourceAware
  6. 0

    Swagger with Jersey2.6

    GitHub | 2 years ago | vishakMetric
    java.lang.NoClassDefFoundError: com/wordnik/swagger/jaxrs/listing/ApiDeclarationProvider

  1. kjhdofjosvs 3 times, last 3 weeks ago
  2. Luka 24 times, last 2 months ago
  3. andyglick 2 times, last 3 months ago
  4. tfr 8 times, last 4 months ago
  5. pnaranja 1 times, last 5 months ago
5 more registered users
90 unregistered visitors
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/activation/DataContentHandler

    at java.lang.ClassLoader.defineClass1()
  2. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.defineClass1(Native Method)
    2. java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    3. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    4. java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    5. java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    6. java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    7. java.security.AccessController.doPrivileged(Native Method)
    8. java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    9. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    10. java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    11. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    12. java.lang.ClassLoader.defineClass1(Native Method)
    13. java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    14. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    15. java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    16. java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    17. java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    18. java.security.AccessController.doPrivileged(Native Method)
    19. java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    20. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    21. java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    22. java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    22 frames
  3. Glassfish Core
    WebappClassLoader.loadClass
    1. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1346)
    2. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
    2 frames
  4. Java RT
    DataHandler.writeTo
    1. javax.activation.MailcapCommandMap.getDataContentHandler(MailcapCommandMap.java:590)
    2. javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:550)
    3. javax.activation.DataHandler.getDataContentHandler(DataHandler.java:611)
    4. javax.activation.DataHandler.writeTo(DataHandler.java:315)
    4 frames
  5. JavaMail API
    Transport.send
    1. javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:248)
    2. javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1268)
    3. javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2012)
    4. javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1980)
    5. javax.mail.Transport.send(Transport.java:97)
    5 frames
  6. Hudson
    Executor.run
    1. hudson.tasks.MailSender.execute(MailSender.java:65)
    2. hudson.tasks.Mailer._perform(Mailer.java:73)
    3. hudson.tasks.Mailer.perform(Mailer.java:67)
    4. hudson.model.Build$RunnerImpl.post2(Build.java:138)
    5. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:243)
    6. hudson.model.Run.run(Run.java:595)
    7. hudson.model.Build.run(Build.java:103)
    8. hudson.model.ResourceController.execute(ResourceController.java:66)
    9. hudson.model.Executor.run(Executor.java:59)
    9 frames