I'm trying to get the libraries needed to send mail on AppEngine.
The docs (https://cloud.google.com/appengine/docs/standard/java/mail/mailgun) state that these need to be added if using Maven:
jersey-core 1.19.4
jersey-client 1.19.4
jersey-multipart 1.19.4
Adding them however, results in an error message in Eclipse.
The type javax.ws.rs.ext.RuntimeDelegate$HeaderDelegate cannot be resolved. It is indirectly referenced from required .class files
That can be resolved by adding javax.ws.rs-api-2.0.1, but using that jar seems problematic.
Appengine is throwing an error:
Caused by: java.lang.ExceptionInInitializerError
... 44 more
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.glassfish.jersey.internal.RuntimeDelegateImpl
at com.sun.jersey.core.header.MediaTypes.<clinit>(MediaTypes.java:65)
... 62 more
Caused by: java.lang.ClassNotFoundException: org.glassfish.jersey.internal.RuntimeDelegateImpl
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at com.google.apphosting.runtime.ApplicationClassLoader.findClass(ApplicationClassLoader.java:45)
In a thread here though that error org.glassfish.jersey.internal.RuntimeDelegateImpl NOT FOUND is said to be solvable by removing javax.ws.rs-api-2.0
Other suggestions include using jersey2, but that requires additional configuration I believe and the AppEngine docs don't show how to do that.
How can I send mail on Appengine using Mailgun???