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
wsgen
tool that is included with JAX-WS, assuming that is a useful alternative. – Draftwsgen
, I have again the same problem. It is excluded from Java 9 as JEP 320 recommends. Now I need to consider how to use it taking into account that it is included in [Maven link] (search.maven.org/…) as JEP 320 states. – Amends