karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Achim Nierbeck (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-1459) Problem with the OBR Resolver and Pax Web
Date Fri, 17 May 2013 15:39:15 GMT

    [ https://issues.apache.org/jira/browse/KARAF-1459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13660797#comment-13660797
] 

Achim Nierbeck commented on KARAF-1459:
---------------------------------------

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. 
                
> Problem with the OBR Resolver and Pax Web
> -----------------------------------------
>
>                 Key: KARAF-1459
>                 URL: https://issues.apache.org/jira/browse/KARAF-1459
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-core
>    Affects Versions: 3.0.0
>            Reporter: Andreas Pieber
>            Assignee: Achim Nierbeck
>             Fix For: 3.0.0
>
>
> 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
> {code}
> 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
> {code}
> And the following log
> {code}
> 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]
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message