For some reason, JARS created by wsimport -clientjar can’t be read properly. We have trouble finding our classes when using these JARs.
wsimport -clientjar output.jar input.wsdl
Our workaround is to use a Windows batch file with the following contents to recreate the JAR file, using the jar.exe utility.
@echo off mkdir ~jar cd ~jar jar -xf ..\%1 jar -cf ..\%1 * cd .. rmdir /S /Q ~jar
We named our batch file recrate-jar.bat can call it like this.