For some reason, JARS created by wsimport -clientjar can’t be read properly. We have trouble finding our classes when using these JARs.
1 | 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.
1 2 3 4 5 6 7 | @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.
1 | recreate-jar.bat output.jar |