Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-11044

Quickstart jaxws-retail illegal access warning with JDK11

XMLWordPrintable

      the `jaxws-retail` quickstart executed on JDK11 as:

      mvn clean install wildfly:deploy -Dmaven.compiler.target=11 -Dmaven.compiler.source=11 -Dmaven.test.failure.ignore=true
      

      now throws:

      [ERROR] WARNING: An illegal reflective access operation has occurred
      [ERROR] WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector (file:/home/jbliznak/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.0/jaxb-runtime-2.3.0.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
      [ERROR] WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector
      [ERROR] WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      [ERROR] WARNING: All illegal access operations will be denied in a future release
      

      The problematic part is in JAXB component. There is a new version of JAXb that is fixing this https://github.com/javaee/jaxb-v2/releases/tag/2.3.1 (comit https://github.com/javaee/jaxb-v2/commit/9805bc91473a9f4dee95e7192998a5bbb61350f2) but it is not in maven central yet (https://github.com/javaee/jaxb-v2/issues/1213#issuecomment-422717074).
      The fix for the quickstart is to use either new version of jbossws-cxf-client consuming this new JAXB version or explicit dependency to new JAXB in quickstart itself.

              emartins@redhat.com Eduardo Martins
              jbliznak@redhat.com Jan Blizňák
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: