[jboss-jira] [JBoss JIRA] (WFLY-11044) Quickstart jaxws-retail illegal access warning with JDK11
Eduardo Martins (Jira)
issues at jboss.org
Mon Oct 15 18:57:00 EDT 2018
[ https://issues.jboss.org/browse/WFLY-11044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13648309#comment-13648309 ]
Eduardo Martins commented on WFLY-11044:
----------------------------------------
Once WFLY-11113 is resolved we will sync dependency management with server.
> 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/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.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list