Apache CXF and Java 9. WS Consumer not generated

1.2k views Asked by At

In Java 1.8, I had no problems generating a WS client using:

wsdl2java -ant -client -d ClientDir hello_world.wsdl

as refers to Apache CXF documentation http://cxf.apache.org/docs/developing-a-consumer.html

But in Java 9, I have got the following error:

-Djava.endorsed.dirs=./../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.

I know that part of this questions has already been covered in How do you replace endorsed directory in Java 9? however, the solution proposed by @nullpointer is not clear enough for a java beginner like me.

Can anybody explain in a "simple way" how can I generate the ws client stub without going back to Java 1.8?

Thanks

0

There are 0 answers