Jan Blizňák created WFLY-11044:
----------------------------------
Summary: Quickstart jaxws-retail illegal access warning with JDK11
Key: WFLY-11044
URL:
https://issues.jboss.org/browse/WFLY-11044
Project: WildFly
Issue Type: Bug
Components: Quickstarts
Reporter: Jan Blizňák
Assignee: Eduardo Martins
Priority: Critical
the `jaxws-retail` quickstart executed on JDK11 as:
{noformat}
mvn clean install wildfly:deploy -Dmaven.compiler.target=11 -Dmaven.compiler.source=11
-Dmaven.test.failure.ignore=true
{noformat}
now throws:
{code:java}
[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
{code}
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/9805bc91473a9f4dee95e7192998a5bb...) 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.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)