Karaf
  1. Karaf
  2. KARAF-827

Karaf Web deployer (Pax-Web) always tries to deploy the deploy/README file

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.2.2
    • Fix Version/s: 2.2.3, 3.0.0
    • Component/s: karaf-webcontainer
    • Labels:
      None

      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.

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Achim Nierbeck
              Reporter:
              Jean-Baptiste Onofré
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development