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

Plain gogo commands (for scr) don't work from the karaf shell

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 4.0.2
    • None
    • None
    • None

    Description

      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
      

      restart the Karaf.

      Try to use 'scr:info' from the Felix scr bundle. Not found. but:

      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
      

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              bmargulies Benson Margulies
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: