• Post Reply Bookmark Topic Watch Topic
  • New Topic

SMTPAppender Error

Sirish Kumar Gongal Reddy
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am tying to email my webapplication log file whenever i my log file is populated with ERROR and FATAL messages. But i am getting the follwing errors,
My Classpath containing: mail.jar (1.2 version), activation.jar. Opps but still.... :-)

java.lang.NoClassDefFoundError: org/apache/geronimo/mail/util/Base64Encoder
at javax.mail.internet.MimeMessage.setSubject(MimeMessage.java:554)
at javax.mail.internet.MimeMessage.setSubject(MimeMessage.java:544)
at SendEmail.postMail(SendEmail.java:44)
at PostEmailTest.main(PostEmailTest.java:12)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
Exception in thread "main"

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!