[jbossws-issues] [JBoss JIRA] (JBWS-4075) jaxws-tools-maven-plugin doesn't work on JDK9

R Searls (JIRA) issues at jboss.org
Thu Feb 1 14:20:00 EST 2018


    [ https://issues.jboss.org/browse/JBWS-4075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13527481#comment-13527481 ] 

R Searls commented on JBWS-4075:
--------------------------------

The specific exception described in this jira was more related to the code having old
versions of dependency archives.   Fixing that addressed an issue with the testcases
failing and exceptions given by the tool.   Jira https://issues.jboss.org/browse/JBWS-4092 was created to checkin these changes.

It is unclear if the JBWS-4092 changes are sufficient for this tool to be used with jdk9.  This
is because this tool requires archive org.jboss.ws.cxf:jbossws-cxf-client.  I have not been
able to successfully run my test app with the version changes, org.jboss.ws.cxf:jbossws-cxf-client:5.2.0.Final and JDK9.   I have not been able to build jbossws-cxf branch jdk9 with any version of JDK9. 

 jbossws-cxf-client references classes  javax.tools.JavaFileManager, javax/tools/DiagnosticListener.  These are exported from  module java.compile.   My test app
reports  NoClassDefFoundError expections for classes.  I have not found a way to address
this issue.

> jaxws-tools-maven-plugin doesn't work on JDK9
> ---------------------------------------------
>
>                 Key: JBWS-4075
>                 URL: https://issues.jboss.org/browse/JBWS-4075
>             Project: JBoss Web Services
>          Issue Type: Task
>          Components: jaxws-tools-maven-plugin
>    Affects Versions: jbossws-jaxws-tools-maven-plugin-1.2.0.Beta1
>            Reporter: Tomaz Cerar
>            Assignee: R Searls
>             Fix For: jbossws-cxf-5.2.1.Final
>
>
> When running on JDK9 plugin fails with CNFE classes from jaxb impl
> Maybe fix would be as simple as using jaxb-ri 2.3 dependency explicitly.
> {noformat}
> Caused by: java.lang.NoClassDefFoundError: com/sun/istack/FinalArrayList
>         at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:246)
>         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.base/java.lang.reflect.Method.invoke(Method.java:564)
>         at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:137)
>         at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:108)
>         at javax.xml.bind.ContextFinder.find(ContextFinder.java:286)
>         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:412)
>         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:375)
>         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:279)
>         at org.apache.cxf.tools.wsdlto.core.PluginLoader.init(PluginLoader.java:78)
>         at org.apache.cxf.tools.wsdlto.core.PluginLoader.<init>(PluginLoader.java:73)
>         at org.apache.cxf.tools.wsdlto.core.PluginLoader.newInstance(PluginLoader.java:106)
>         at org.apache.cxf.tools.wsdlto.WSDLToJava.<init>(WSDLToJava.java:48)
>         at org.jboss.wsf.stack.cxf.tools.CXFConsumerImpl.consume(CXFConsumerImpl.java:308)
>         at org.jboss.ws.api.tools.WSContractConsumer.consume(WSContractConsumer.java:225)
>         ... 29 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jbossws-issues mailing list