Affects Version/s: 7.0.7, 7.0.8
Fix Version/s: None
Component/s: TomEE Core Server
It would be nice if latest JAXB-Ri is included in TomEE so that we don't have to apply a workaround for the below issue:
Processing multiline text (\n or carriage return) using the JAXB APIs in TomEE fails with the exception "Marshalling Error: Entity References are not allowed in SOAP documents".
Please refer to the attachment for full exception stack trace: Log.txt
This issue is reproducible with JDK (11 or later) versions which do not include JAXB.
The following JDK bugs are relatable to this issue:
TomEE bundles JAXB-Ri 2.3.0 (jaxb-api-2.3.0.jar, jaxb-core-2.3.0.jar, and jaxb-impl-2.3.0.jar) which apparently is also affected by the aforementioned bugs.
Our Product uses this bundled version of JAXB at runtime to process user data.
To overcome this issue, we tried to override these jars with those from 2.3.1 distribution by including then in our webapp classpath. However it didnt work, and generated the following exception:
Finally, we tried the below workaround as suggested here.
When we replaced 2.3.0 jars with latest 2.3.1 jars, the issue was no longer observed.