[ 
https://issues.apache.org/jira/browse/CXF-7971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16771438#comment-16771438
 ] 

Freeman Fang commented on CXF-7971:
-----------------------------------

[~coheigea],

I think we can detect JDK version and if it's JDK8, keep the script as is, if 
it's JDK9+, remove endorsed and tools.jar, add necessary libs on classpath, 
just like we do for Apache Karaf scripts.

If we don't need endorsed folder for JDK8 at all, yup, let's remove this folder 
for any JDKs

Freeman

> wsdl2java does't work on Java 11
> --------------------------------
>
>                 Key: CXF-7971
>                 URL: https://issues.apache.org/jira/browse/CXF-7971
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 3.3.0
>            Reporter: kongyeku
>            Assignee: Freeman Fang
>            Priority: Major
>              Labels: wsdl2java
>
> when I use CXF 3.3 and Java 11 to development Web Service,
> because Java 11 have removed jaxws,  I have to add many JAR(including 
> javax.jws-api-1.1.jar、jaxws-api-2.3.1.jar、jaxb-api-2.3.1.jar、jaxb-core-2.3.0.1.jar、jaxb-impl-2.3.2.jar、javax.xml.soap-api-1.4.0.jar、javax.annotation-api-1.3.2.jar
>  ...)。
> afterI published my Web Service succussfully, I want to use the wsdl2java 
> tool, the tool show error as below:
> -Djava.endorsed.dirs=E:\Java\Web_Service\CXF\apache-cxf-3.3.0\bin\..\lib\endorsed
>  is not supported. Endorsed standards and standalone APIs
> in modular form will be supported via the concept of upgradeable modules.
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
>  
> If I change the JAVA_HOME to Java 8, wsdl2java will work well, so I want to 
> know if CXF 3.3 can work on Java 11?  how can I resolve this probleam



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to