java.lang.NoClassDefFoundError com.sun.mail.util.MailLogger in JBoss EAP 7.x

Solution Verified - Updated -

Issue

Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: com/sun/mail/util/MailLogger. Customer is unable to use email functionality after moving from Weblogic to JBoss EAP 7.1

2019-06-25 15:18:16,567 | ERROR | example:error(206) | transaction_id="ERR_5a439637-25b8-43fd-a113-87f601b6f020" event_id="6e7af994-818c-4e91-8ea5-5af38ed824e5" app="NotificationService" event_name="INTERNAL_SERVER_ERROR" action="Exception in Notification flow" desc="Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: com/sun/mail/util/MailLogger" result="failure" reason="Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: com/sun/mail/util/MailLogger" exception_key=
(...)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoClassDefFoundError: com/sun/mail/util/MailLogger
at javax.mail.Session.initLogger(Session.java:226)
(...)
Caused by: java.lang.ClassNotFoundException: com.sun.mail.util.MailLogger from [Module "example_deployment.war" from Service Module Loader]
        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content