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

Problem with the OBR Resolver and Pax Web

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.0
    • Component/s: karaf-core
    • Labels:
      None

      Description

      The issue is quite simple to reproduce:

      a) build and start karaf 3
      b) feature:install obr
      c) feature:install war (PENG)

      (c) fails with

      karaf@root> feature:install war
      Error executing command: Can not resolve feature:
      Unsatisfied requirement(s):
      ---------------------------
         service:(service=org.ops4j.pax.web.service.spi.WarManager)
            Apache Karaf :: Web :: Core
      
      

      And the following log

      java.lang.Exception: Can not resolve feature:
      Unsatisfied requirement(s):
      ---------------------------
         service:(service=org.ops4j.pax.web.service.spi.WarManager)
            Apache Karaf :: Web :: Core
      
              at org.apache.karaf.features.obr.internal.ObrResolver.resolve(ObrResolver.java:120)
              at Proxybb49ef21_3c53_4e05_80d0_237c718a5fad.resolve(Unknown Source)
              at org.apache.karaf.features.internal.FeaturesServiceImpl.resolve(FeaturesServiceImpl.java:545)
              at org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:506)
              at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:312)
              at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:300)
              at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:296)
              at Proxya3c2fc31_dcc2_46fb_ba7c_ddff0ada48c9.installFeature(Unknown Source)
              at org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:62)
              at org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:40)
              at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)
              at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)
              at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_03-icedtea]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_03-icedtea]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_03-icedtea]
              at java.lang.reflect.Method.invoke(Method.java:601)[:1.7.0_03-icedtea]
              at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)
              at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)
              at org.apache.karaf.shell.console.commands.$BlueprintCommand295071940.execute(Unknown Source)
              at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)
              at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
              at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
              at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
              at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
              at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
              at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
              at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:164)
              at java.lang.Thread.run(Thread.java:722)[:1.7.0_03-icedtea]
              at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[37:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
              at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
              at java.security.AccessController.doPrivileged(Native Method)[:1.7.0_03-icedtea]
              at javax.security.auth.Subject.doAs(Subject.java:356)[:1.7.0_03-icedtea]
              at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[37:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
      2012-05-10 10:08:23,803 | INFO  | Thread-6         | ConsoleImpl                      | 37 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
      java.lang.Exception: Feature named 'war' is not installed
              at org.apache.karaf.features.internal.FeaturesServiceImpl.uninstallFeature(FeaturesServiceImpl.java:819)
              at Proxya3c2fc31_dcc2_46fb_ba7c_ddff0ada48c9.uninstallFeature(Unknown Source)
              at org.apache.karaf.features.command.UninstallFeatureCommand.doExecute(UninstallFeatureCommand.java:43)
              at org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:40)
              at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)
              at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)
              at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_03-icedtea]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_03-icedtea]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_03-icedtea]
              at java.lang.reflect.Method.invoke(Method.java:601)[:1.7.0_03-icedtea]
              at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)
              at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)
              at org.apache.karaf.shell.console.commands.$BlueprintCommand295071940.execute(Unknown Source)
              at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)
              at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
              at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
              at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
              at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
              at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
              at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
              at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:164)
              at java.lang.Thread.run(Thread.java:722)[:1.7.0_03-icedtea]
              at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[37:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
              at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
              at java.security.AccessController.doPrivileged(Native Method)[:1.7.0_03-icedtea]
              at javax.security.auth.Subject.doAs(Subject.java:356)[:1.7.0_03-icedtea]
              at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[37:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
      

        Activity

        Hide
        achim_nierbeck Achim Nierbeck added a comment -

        either we get rid of the service-import entries in the manifest or pax-web needs to add an export-service.
        as a workaround I added the export-service to pax-web :/

        In the long run I'd say we need to get rid of those <Import-Service> entries.

        Show
        achim_nierbeck Achim Nierbeck added a comment - either we get rid of the service-import entries in the manifest or pax-web needs to add an export-service. as a workaround I added the export-service to pax-web :/ In the long run I'd say we need to get rid of those <Import-Service> entries.
        Hide
        achim_nierbeck Achim Nierbeck added a comment -

        fixed by Pax-Web exporting the service
        see: https://ops4j1.jira.com/browse/PAXWEB-573

        Show
        achim_nierbeck Achim Nierbeck added a comment - fixed by Pax-Web exporting the service see: https://ops4j1.jira.com/browse/PAXWEB-573

          People

          • Assignee:
            achim_nierbeck Achim Nierbeck
            Reporter:
            pieber Andreas Pieber
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development