[
https://issues.apache.org/jira/browse/CXF-7971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16790154#comment-16790154
]
Freeman Fang commented on CXF-7971:
-----------------------------------
Hi [~coheigea],
Thanks for trying it out!
I think this problem comes from that the default shell (/bin/sh) under Ubuntu
points to dash, not bash.
Could you please try change the first line of wsdl2java from
{code}
#!/bin/sh
{code}
to
{code}
#!/bin/bash
{code}
to see if it helps?
Sorry I don't have ubuntu machine at hand so can't test it on my own.
Freeman
> bin/scripts 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
> Fix For: 3.3.2
>
>
> 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)