As it turns out, JWS 5 Tomcat Embedded with Apache CXF does not work properly with Java 11.
We are shipping Apache CXF 3.2.7 in JWS 5.2, although Apache CXF support for Java 11 comes with CXF 3.3.x.
One of the tests with a basic service sort of works, but the log is full of usual warnings on
Failed to scan [file:/opt/workspace/workspace/jws5-java-tests-RHEL/779e38d1/repo/repository/xalan/xalan/2.7.1/xercesImpl.jar] from classloader hierarchy java.io.IOException: java.lang.reflect.InvocationTargetException ... Failed to scan [file:/opt/workspace/workspace/jws5-java-tests-RHEL/779e38d1/repo/repository/xalan/xalan/2.7.1/serializer.jar] from classloader hierarchy java.io.IOException: java.lang.reflect.InvocationTargetException at org.apache.tomcat.util.compat.Jre9Compat.jarFileNewInstance(Jre9Compat.java:212) ... Caused by: java.nio.file.NoSuchFileException: /opt/workspace/workspace/jws5-java-tests-RHEL/779e38d1/repo/repository/com/sun/xml/bind/jaxb-impl/2.2.11/jaxb-core.jar
Although in my local environment with latest Java 11 update it outright fails completely and the embedded app doesn't deploy at all. The usual Java 11 porting suspect:
[ERROR] 'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar must specify an absolute path but is ${tools.jar} @
Until we upgrade CXF I suggest we state in Release Notes that Apache CXF + Tomcat Embedded is not supported on Java 11.