Description
The Karaf web deployer (powered by Pax-Web) always try to deploy the deploy/README file:
2011-08-25 08:52:30,219 | DEBUG | raf-2.2.2/deploy | WarDeployer | eb.deployer.internal.WarDeployer 62 | 78 - org.ops4j.pax.web.pax-web-deployer - 1.0.4 | Can't handle file README
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)[:1.6.0_26]
at java.util.zip.ZipFile.<init>(ZipFile.java:127)[:1.6.0_26]
at java.util.jar.JarFile.<init>(JarFile.java:135)[:1.6.0_26]
at java.util.jar.JarFile.<init>(JarFile.java:99)[:1.6.0_26]
at org.ops4j.pax.web.deployer.internal.WarDeployer.canHandle(WarDeployer.java:40)[78:org.ops4j.pax.web.pax-web-deployer:1.0.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.findListener(DirectoryWatcher.java:467)[6:org.apache.felix.fileinstall:3.1.10]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:415)[6:org.apache.felix.fileinstall:3.1.10]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:263)[6:org.apache.felix.fileinstall:3.1.10]
From a general purpose, the web deployer should check if the artifact handled is really a zip file and doesn't display the whole stack strace in that case.