Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.16.1
-
None
Description
Jakarta Mail 2 included changes to use the new API and implementation classes with the jakarta namespace instead of the javax namespace. Jakarta Mail 2 depends on Jakarta Activation 2, which includes the same namespaces changes. This works for extension components, but creates problems at runtime when running on Java 11 and higher since NiFi includes dependencies on JAXB 2 runtime libraries that require Jakarta Activation 1. The NiFi startup process includes the JAXB 2 runtime libraries when running on Java 11, resulting in class conflicts due to incompatible versions of Jakarta Activation 1 and 2.
Upgrading JAXB 2 to JAXB 3 requires API and implementation changes that impact a large number of classes, which should be addressed separately. To maintain compatibility with JAXB 2 on Java 11 and higher, Jakarta Mail 2 should be downgraded to Jakarta Mail 1 for the nifi-bootstrap module and the Email Notification Service.
Attachments
Issue Links
- is caused by
-
NIFI-9601 Upgrade NiFi Bootstrap to Jakarta Mail 2
- Resolved
- relates to
-
NIFI-10032 Upgrade JAXB Runtime to 4.0
- Resolved
- links to