[
https://issues.apache.org/jira/browse/KARAF-7856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17875325#comment-17875325
]
Matt Pavlovich edited comment on KARAF-7856 at 8/21/24 3:03 PM:
----------------------------------------------------------------
Note: These are not accessible when connecting to karaf over ssh shell. When
running ./bin/karaf the commands are available.
1. 'restart' command auto-completes in the shell
2. When executing, it fails
{noformat}
15:02:30.198 DEBUG [Karaf ssh console user admin] Executing command: 'restart
199'
15:02:30.199 DEBUG [Karaf ssh console user admin] Command: 'restart 199'
failed: org.apache.felix.gogo.runtime.CommandNotFoundException: Command not
found: bundle:restart
15:02:30.199 DEBUG [Karaf ssh console user admin] Unknown command entered
org.apache.felix.gogo.runtime.CommandNotFoundException: Command not found:
bundle:restart
at
org.apache.karaf.shell.impl.console.osgi.secured.SecuredSessionFactoryImpl.checkSecurity(SecuredSessionFactoryImpl.java:212)
~[?:?]
at
org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:67)
~[?:?]
at
org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
~[?:?]
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599)
~[?:?]
at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) ~[?:?]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415)
~[?:?]
at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) ~[?:?]
at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?]
at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
~[?:?]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
~[?:?]
at java.lang.Thread.run(Thread.java:829) ~[?:?]
{noformat}
was (Author: mattrpav):
Note: These are not accessible when connecting to karaf over ssh shell. When
running ./bin/karaf the commands are available.
> Some bundle commands not registrering
> -------------------------------------
>
> Key: KARAF-7856
> URL: https://issues.apache.org/jira/browse/KARAF-7856
> Project: Karaf
> Issue Type: Bug
> Affects Versions: 4.3.7
> Reporter: Matt Pavlovich
> Priority: Minor
>
> {noformat}
> admin@root()> bundle:
> bundle:capabilities (Displays OSGi capabilities of a given bundles)
> bundle:id (Gets the bundle
> ID) bundle:services (Lists OSGi services per
> Bundle)
> bundle:classes (Displays a list of classes/resources contained in the bundle)
> bundle:info (Displays detailed information of a given
> bundles) bundle:start-level (Gets or sets the start level
> of a bundle)
> bundle:diag (Displays diagnostic information why a bundle is not Active)
> bundle:list (Lists all installed
> bundles) bundle:status (Get the bundle
> current status)
> bundle:dynamic-import (Enables/disables dynamic-import for a given bundle)
> bundle:load-test (Load test bundle
> lifecycle) bundle:tree-show (Shows the tree of bundles based on the wiring
> information)
> bundle:find-class (Locates a specified class in any deployed bundle)
> bundle:requirements (Displays OSGi requirements of a given
> bundles)
> bundle:headers (Displays OSGi headers of a given bundles)
> bundle:resolve (Resolve
> bundles)
> {noformat}
> Classes are present:
> {noformat}
> org/apache/karaf/bundle/command/BundleCommand.class | exported: false
> org/apache/karaf/bundle/command/BundlesCommand.class | exported: false
> org/apache/karaf/bundle/command/Capabilities.class | exported: false
> org/apache/karaf/bundle/command/Classes.class | exported: false
> org/apache/karaf/bundle/command/Diag.class | exported: false
> org/apache/karaf/bundle/command/DynamicImport.class | exported: false
> org/apache/karaf/bundle/command/FindClass.class | exported: false
> org/apache/karaf/bundle/command/Headers$1.class | exported: false
> org/apache/karaf/bundle/command/Headers$2.class | exported: false
> org/apache/karaf/bundle/command/Headers$ClauseFormatter.class | exported:
> false
> org/apache/karaf/bundle/command/Headers.class | exported: false
> org/apache/karaf/bundle/command/Id.class | exported: false
> org/apache/karaf/bundle/command/Info.class | exported: false
> org/apache/karaf/bundle/command/Install.class | exported: false
> org/apache/karaf/bundle/command/List$1.class | exported: false
> org/apache/karaf/bundle/command/List.class | exported: false
> org/apache/karaf/bundle/command/LoadTest.class | exported: false
> org/apache/karaf/bundle/command/Refresh.class | exported: false
> org/apache/karaf/bundle/command/Requirements.class | exported: false
> org/apache/karaf/bundle/command/Resolve.class | exported: false
> org/apache/karaf/bundle/command/Restart.class | exported: false
> org/apache/karaf/bundle/command/Services.class | exported: false
> org/apache/karaf/bundle/command/ShowBundleTree.class | exported: false
> org/apache/karaf/bundle/command/Start.class | exported: false
> org/apache/karaf/bundle/command/StartLevel.class | exported: false
> org/apache/karaf/bundle/command/Status.class | exported: false
> org/apache/karaf/bundle/command/Stop.class | exported: false
> org/apache/karaf/bundle/command/Uninstall.class | exported: false
> org/apache/karaf/bundle/command/Update.class | exported: false
> org/apache/karaf/bundle/command/Watch.class | exported: false
> org/apache/karaf/bundle/command/bundletree/Node.class | exported: false
> org/apache/karaf/bundle/command/bundletree/Tree$Converter.class | exported:
> false
> org/apache/karaf/bundle/command/bundletree/Tree.class | exported: false
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)