Short answer:
You can safely replace them with the corresponding JARs from the Apache Geronimo project. They can be found here:
http://repo1.maven.org/maven2/org/apache/geronimo/specs/
Long answer:
Activation and JavaMail are used by Axis2 in two places:
- The support for SwA and MTOM. Here it is primarily the
DataHandler
class and related classes that are used. - As implementation of the POP3/IMAP/SMTP protocols in the mail transport.
The SwA/MTOM support is actually provided by the Apache Axiom project which itself uses the Geronimo JARs. Axiom has an extensive unit test suite and there are no known issues related to the usage of the Geronimo JARs. Therefore it is safe to use them with Axis2 as well (for the SwA/MTOM support).
There are several reasons why Axis2 overrides the dependencies of the Axiom project to use the Sun/Oracle JARs instead of the Geronimo JARs:
- Early versions of the Geronimo JARs had bugs that affected SwA/MTOM, but this is no longer the case (see above).
- Since the POP3/IMAP/SMTP code is much more complex than the
DataHandler
stuff, the Geronimo JARs may still cause issues if the Axis2 mail transport is used. - Most third party projects use the Sun/Oracle JARs. Axis2 has chosen to use these JARs to avoid ending up with the two sets of JARs when combining Axis2 with other projects.
- The ASF doesn't consider (actually, no longer considers) that the licenses of the Sun/Oracle JARs are incompatible with the ASL.