The problem seems to occur only when using the "shell" script from the "bin" folder. Using "./start", followed by "./client", the commands "system:shutdown" and "logout" are working properly.
Jens Gesendet: Freitag, 06. Januar 2017 um 06:43 Uhr Von: "Jens Offenbach" <wolle5...@gmx.de> An: user@karaf.apache.org Betreff: Shell commands are unavailable Hi, I am using Apache Karaf 4.1.0-Snapshot and in the current snapshot release, there seems to be a problem regarding shell commands. I have opened the following issue: https://issues.apache.org/jira/browse/KARAF-4926. But things seem to be much more problematic. Even the "logout" command is reported as unavailable. I am using the last snapshot (apache-karaf-4.1.0-20170105.165025-279.tar.gz") from the Apache snapshot repository. Give it a try: $ ./shell [org.apache.karaf.shell.impl.console.ConsoleSessionImpl] : completionMode property is not defined in etc/org.apache.karaf.shell.cfg file. Using default completion mode. __ __ ____ / //_/____ __________ _/ __/ / ,< / __ `/ ___/ __ `/ /_ / /| |/ /_/ / / / /_/ / __/ /_/ |_|\__,_/_/ \__,_/_/ Apache Karaf (4.1.0-SNAPSHOT) Hit '<tab>' for a list of available commands and '[cmd] --help' for help on a specific command. Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf. karaf@root()> logout [org.apache.karaf.shell.support.ShellUtil] : Unknown command entered org.apache.felix.gogo.runtime.CommandNotFoundException: Command not found: logout at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:549) at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:478) at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:367) at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 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:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Command not found: logout karaf@root()> system:shutdown [org.apache.karaf.shell.support.ShellUtil] : Unknown command entered org.apache.felix.gogo.runtime.CommandNotFoundException: Command not found: system:shutdown at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:549) at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:478) at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:367) at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 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:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Command not found: system:shutdown This is a hard blocker right now. May someone please have a look at this. Thanks a lot! Regards, Jens