The wsimport command is wsimport from the working directory, the path of which contains space characters ( Program Files ). This is a likely source of problems for generating code (JAXB binding objects, WS fragments) in wsimport .
If the output folders for the generated files are not explicitly specified using the -d or -s options, the current working directory will be used as the default value. It seems that wsimport does not surround the directory parameter in quotation marks when it internally invokes the JAX-WS / JAXB code generation tools.
To fix the problem, you can run this command from a directory that does not have a space in the path. You also need to surround the path to wsimport quotation marks when invoking the command:
cd C:\temp "C:\Program Files\Java\jdk1.8.0_25\bin\wsimport" -keep http://localhost:9999/ws/hello?wsdl
Mick mnemonic
source share