Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-1692

Deployment of unpacked WAR does not work

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.8
    • Fix Version/s: None
    • Component/s: karaf-core
    • Labels:
      None
    • Environment:

      Karaf 2.2.8 on Windows

      Description

      A WAR that deploys properly when put into the deploy directory, is not deployable as an unpacked WAR (WAR content put into a folder with .war extension) in the deploy directory.

        Activity

        Hide
        achim_nierbeck Achim Nierbeck added a comment -

        see also PAXWEB-457

        Show
        achim_nierbeck Achim Nierbeck added a comment - see also PAXWEB-457
        Hide
        achim_nierbeck Achim Nierbeck added a comment -

        Looks like one of the reasons for this not to work any longer is this fix. https://github.com/ops4j/org.ops4j.pax.web/commit/83c42c0d5c69bea5ecada78e82feeb94c909faca

        Show
        achim_nierbeck Achim Nierbeck added a comment - Looks like one of the reasons for this not to work any longer is this fix. https://github.com/ops4j/org.ops4j.pax.web/commit/83c42c0d5c69bea5ecada78e82feeb94c909faca
        Hide
        mpriess Michael Prieß added a comment - - edited

        There are different behaviors between linux and windows. It's possible to reproduce the problem described by lars with a exploded war under windows. For testing I used this war http://mirrors.jenkins-ci.org/war/latest/jenkins.war. Seems like the path used in the Parser class is not correct under windows. Under linux the path looks fine, but the bundle cannot be generated. But this is maybe another problem which should also occur under windows after fixing the path.

        org.ops4j.pax.url.wrap.internal.Parser

        Linux Path:
        jardir:/home/mpriess/Arbeitsfläche/apache-karaf-2.2.8/deploy/jenkins.war$Bundle-SymbolicName=jenkins.war&Bundle-Version=0.0.0

        Windows Path:
        jardir:C:\\Users\\mpriess\\Downloads\\apache-karaf-2.2.8\\apache-karaf-2.2.8\\deploy\\jenkins.war$Bundle-SymbolicName=C:\\Users\\mpriess\\Downloads\\apache-karaf-2.2.8
        apache-karaf&Bundle-Version=2.2.8.deployjenkins"

        Show
        mpriess Michael Prieß added a comment - - edited There are different behaviors between linux and windows. It's possible to reproduce the problem described by lars with a exploded war under windows. For testing I used this war http://mirrors.jenkins-ci.org/war/latest/jenkins.war . Seems like the path used in the Parser class is not correct under windows. Under linux the path looks fine, but the bundle cannot be generated. But this is maybe another problem which should also occur under windows after fixing the path. org.ops4j.pax.url.wrap.internal.Parser Linux Path: jardir:/home/mpriess/Arbeitsfläche/apache-karaf-2.2.8/deploy/jenkins.war$Bundle-SymbolicName=jenkins.war&Bundle-Version=0.0.0 Windows Path: jardir:C:\\Users\\mpriess\\Downloads\\apache-karaf-2.2.8\\apache-karaf-2.2.8\\deploy\\jenkins.war$Bundle-SymbolicName=C:\\Users\\mpriess\\Downloads\\apache-karaf-2.2.8 apache-karaf&Bundle-Version=2.2.8.deployjenkins"
        Hide
        helander Lars-Erik Helander added a comment -

        LOG:

        2012-07-30 22:04:53,595 | ERROR | araf-home/deploy | fileinstall | 6 - org.apache.felix.fileinstall - 3.2.4 | Failed to install artifact: C:\Users\lars-erik.helander\WSROUTER\system\CARMSYS\karaf-home\deploy\xxxx.war
        java.net.MalformedURLException: Invalid syntax for instruction [Bundle-SymbolicName=C:\Users\lars-erik.helander\WSROUTER\system\CARMSYS\karaf-home\deploy\xxxx.war]. Take a look at http://www.aqute.biz/Code/Bnd.
        at org.ops4j.pax.swissbox.bnd.BndUtils.parseInstructions(BndUtils.java:270)[1:org.ops4j.pax.url.wrap:1.2.8]
        at org.ops4j.pax.url.wrap.internal.Parser.<init>(Parser.java:116)[1:org.ops4j.pax.url.wrap:1.2.8]
        at org.ops4j.pax.url.wrap.internal.Connection.<init>(Connection.java:67)[1:org.ops4j.pax.url.wrap:1.2.8]
        at org.ops4j.pax.url.wrap.internal.Activator$1.createConection(Activator.java:59)[1:org.ops4j.pax.url.wrap:1.2.8]
        at org.ops4j.pax.url.wrap.internal.Activator$1.createConection(Activator.java:49)[1:org.ops4j.pax.url.wrap:1.2.8]
        at org.ops4j.pax.url.commons.handler.HandlerActivator$Handler.openConnection(HandlerActivator.java:217)[1:org.ops4j.pax.url.wrap:1.2.8]
        at org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:271)[org.apache.felix.framework-3.0.9.jar:]
        at java.net.URL.openConnection(URL.java:945)[:1.6.0_25]
        at java.net.URL.openStream(URL.java:1010)[:1.6.0_25]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:938)[6:org.apache.felix.fileinstall:3.2.4]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:854)[6:org.apache.felix.fileinstall:3.2.4]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:483)[6:org.apache.felix.fileinstall:3.2.4]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:291)[6:org.apache.felix.fileinstall:3.2.4]

        Show
        helander Lars-Erik Helander added a comment - LOG: 2012-07-30 22:04:53,595 | ERROR | araf-home/deploy | fileinstall | 6 - org.apache.felix.fileinstall - 3.2.4 | Failed to install artifact: C:\Users\lars-erik.helander\WSROUTER\system\CARMSYS\karaf-home\deploy\xxxx.war java.net.MalformedURLException: Invalid syntax for instruction [Bundle-SymbolicName=C:\Users\lars-erik.helander\WSROUTER\system\CARMSYS\karaf-home\deploy\xxxx.war] . Take a look at http://www.aqute.biz/Code/Bnd . at org.ops4j.pax.swissbox.bnd.BndUtils.parseInstructions(BndUtils.java:270) [1:org.ops4j.pax.url.wrap:1.2.8] at org.ops4j.pax.url.wrap.internal.Parser.<init>(Parser.java:116) [1:org.ops4j.pax.url.wrap:1.2.8] at org.ops4j.pax.url.wrap.internal.Connection.<init>(Connection.java:67) [1:org.ops4j.pax.url.wrap:1.2.8] at org.ops4j.pax.url.wrap.internal.Activator$1.createConection(Activator.java:59) [1:org.ops4j.pax.url.wrap:1.2.8] at org.ops4j.pax.url.wrap.internal.Activator$1.createConection(Activator.java:49) [1:org.ops4j.pax.url.wrap:1.2.8] at org.ops4j.pax.url.commons.handler.HandlerActivator$Handler.openConnection(HandlerActivator.java:217) [1:org.ops4j.pax.url.wrap:1.2.8] at org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:271) [org.apache.felix.framework-3.0.9.jar:] at java.net.URL.openConnection(URL.java:945) [:1.6.0_25] at java.net.URL.openStream(URL.java:1010) [:1.6.0_25] at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:938) [6:org.apache.felix.fileinstall:3.2.4] at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:854) [6:org.apache.felix.fileinstall:3.2.4] at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:483) [6:org.apache.felix.fileinstall:3.2.4] at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:291) [6:org.apache.felix.fileinstall:3.2.4]

          People

          • Assignee:
            achim_nierbeck Achim Nierbeck
            Reporter:
            helander Lars-Erik Helander
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Development