karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benson Margulies (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-4183) Plain gogo commands (for scr) don't work from the karaf shell
Date Wed, 09 Dec 2015 13:11:11 GMT

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

Benson Margulies commented on KARAF-4183:
-----------------------------------------

Adding shell-compat didn't help:

{noformat}

karaf@root>feature:install shell-compat
karaf@root>
karaf@root>scr:info
Command not found: scr:info
{noformat}


> Plain gogo commands (for scr) don't work from the karaf shell
> -------------------------------------------------------------
>
>                 Key: KARAF-4183
>                 URL: https://issues.apache.org/jira/browse/KARAF-4183
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 4.0.2
>            Reporter: Benson Margulies
>
> {noformat}
> araf@root>bundle:list -t 0 | grep -i scr
> 104 | Active   |  80 | 3.1.2                   | Apache CXF JAX-RS Service Description
> 127 | Active   |  30 | 4.0.2                   | Apache Karaf :: SCR :: Shell Commands
> 128 | Active   |  30 | 4.0.2                   | Apache Karaf :: SCR :: Management MBeans
> karaf@root>bundle:uninstall 127
> karaf@root>bundle:uninstall 128
> {noformat}
> restart the Karaf.
> Try to use 'scr:info' from the Felix scr bundle. Not found. but:
> {noformat}
> karaf@root>bundle:services -p 107
> Apache Felix Declarative Services (107) provides:
> -------------------------------------------------
> objectClass = [org.osgi.service.cm.ConfigurationListener]
> service.bundleid = 107
> service.description = Declarative Services Configuration Support Listener
> service.id = 56
> service.scope = singleton
> service.vendor = The Apache Software Foundation
> ----
> objectClass = [org.osgi.service.component.runtime.ServiceComponentRuntime]
> service.bundleid = 107
> service.id = 57
> service.scope = singleton
> ----
> objectClass = [org.apache.felix.scr.impl.ScrGogoCommand]
> osgi.command.function = [config, disable, enable, info, list]
> osgi.command.scope = scr
> service.bundleid = 107
> service.description = SCR Gogo Shell Support
> service.id = 58
> service.scope = singleton
> service.vendor = The Apache Software Foundation
> ----
> objectClass = [org.osgi.service.cm.ManagedService]
> service.bundleid = 107
> service.description = SCR Configurator
> service.id = 59
> service.pid = org.apache.felix.scr.ScrService
> service.scope = bundle
> service.vendor = The Apache Software Foundation
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message