Gradle gradle-2.11(12). Сan not deploy WAR, built on the OS Windows 8.1 on a Apache-tomcat-8.0.27 running OS Centos.
Maybe should not be used archivers OS Windows 8.1.
java.lang.IllegalArgumentException: MALFORMED
at java.util.zip.ZipCoder.toString(ZipCoder.java:58)
at java.util.zip.ZipCoder.toStringUTF8(ZipCoder.java:117)
at java.util.zip.ZipInputStream.readLOC(ZipInputStream.java:297)
at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:121)
at sun.tools.jar.Main.extract(Main.java:875)
at sun.tools.jar.Main.run(Main.java:263)
at sun.tools.jar.Main.main(Main.java:1177)
I’m guessing that one of your paths / filenames contains special characters. It’s likely you’ll need to set the encoding property to UTF-8 so that filenames are encoded correctly. Eg:
Are you expecting this to be implemented in Gradle? Sounds like a Tomcat feature request to me
The zip format is a bit of a mess in that there’s no standard for filename encoding. If you want a war/zip that is guaranteed to work across platforms, you must avoid non-ASCII characters in filenames (more info here)