Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-1459

Tomcat Embedded with Apache CXF is not Java 11 ready

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 5.3.0.DR1
    • 5.2.0.ER2
    • cxf, embedded
    • None
    • Documentation (Ref Guide, User Guide, etc.), Release Notes

      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.

              szappis@redhat.com Sokratis Zappis
              mbabacek1@redhat.com Karm Karm
              Matus Madzin
              Matus Madzin Matus Madzin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: