I am trying to add the “Email Connector” module from the marketplace. I followed the pre-requisites in the documentation. I removed all unused jars (Had to delete the jars one set at a time and run the app and check if it is breaking – Had to test more than 20 times). I tried replacing the jakarta mail jar which I downloaded from here “https://mavenlibs.com/jar/file/com.sun.mail/jakarta.mail”. I am still facing the “ServiceConfigurationError” exception. Please, help me with the fix. Sudio Pro Version: 9.18.3 java.util.ServiceConfigurationError: jakarta.mail.Provider: com.sun.mail.imap.IMAPProvider not a subtype at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:589) at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1237) at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1265) at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1300) at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1385) at jakarta.mail.Session.loadProviders(Session.java:964) at jakarta.mail.Session.<init>(Session.java:254) at jakarta.mail.Session.getInstance(Session.java:281) at org.simplejavamail.mailer.internal.MailerImpl.createMailSession(MailerImpl.java:187) at org.simplejavamail.mailer.internal.MailerImpl.<init>(MailerImpl.java:134) at org.simplejavamail.mailer.internal.MailerImpl.<init>(MailerImpl.java:119) at org.simplejavamail.mailer.internal.MailerRegularBuilderImpl.buildMailer(MailerRegularBuilderImpl.java:210)
when running locally you might need to clean your deployment directory to remove old .jar files there too.
Have you tried that?
Following the instructions in the Prerequisites of the Email Connector module worked for me:
The Email Connector module should include all the .jar files it needs. If you download jars from another location you could be downloading the wrong version and seeing errors like the one you describe in your question.
I would suggest removing the .jar files you downloaded from elsewhere and just reinstall the Email Connector module directly from the Mendix Marketplace in Studio Pro.