Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jakartaee-platform-dev] lassNotFoundException: com.sun.mail.util.PropUtil when using javax.mail.internet.InternetAddress

Hi,

Are you getting this error while building, or at runtime? I have successfully compiled projects with the new Jakarta EE 8 dependency without any hassle. Can you please post the full log?


Regards,

Guillermo González de Agüero

On Thu, Oct 17, 2019 at 1:00 PM Patrick Reinhart <patrick@xxxxxxxxx> wrote:
Hello everyone,

I just switched over our build dependency from JavaEE 8 to JakartaEE 8
and now I get this ClassNotFoundException:

java.lang.NoClassDefFoundError: com/sun/mail/util/PropUtil
        at
javax.mail.internet.InternetAddress.<clinit>(InternetAddress.java:62)
        at
CH.obj.commons.di.util.InternetAddresses.parseInternetAddress(InternetAddresses.java:56)
        at
CH.obj.commons.di.util.InternetAddresses.create(InternetAddresses.java:35)
        at
CH.obj.di.process.action.email.SendEmailActionTest$1.createNotification(SendEmailActionTest.java:94)
        at
CH.obj.di.process.action.email.SendEmailAction.perform(SendEmailAction.java:40)
        at
CH.obj.di.process.action.email.SendEmailActionTest.testPerform(SendEmailActionTest.java:102)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: com.sun.mail.util.PropUtil
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 7 more

Should it not be possible to use all API classes within the JakartaEE
API to be self contained?

Best regards,

Patrick
_______________________________________________
jakartaee-platform-dev mailing list
jakartaee-platform-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jakartaee-platform-dev

Back to the top