java.lang.NoClassDefFoundError: javax/mail/Authenticator

OS: Fefora 21
Container: apache-tomcat-8.0.23

javamail related jar files: /usr/share/java/javax.mail/javax.mail.jar
/usr/share/java/javamail/mail.jar
/usr/share/java/javamail/javax.mail.jar

Also had my own mail.jar in the $TOMCAT_HOME/lib.

One workaround suggested adding the necessary mail.jar to the war file build.   I went ahead and added the mail.jar to the application war.   I also removed the mail.jar from the $TOMCAT_HOME/lib.  All seems to be working fine with the changes.

About admin

Richard Wolschlager is the owner of Wolmerica Technologies LLC and holds a (93) Bachelors of Science degree in Computer Science with a minor in Mathematics from Saginaw Valley State University. Richard has worked in the Information Technology field for 20 years on a variety of platforms and lines of business.
This entry was posted in Apache Tomcat, Java, Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *