You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Arnaud Vandyck <av...@gmail.com> on 2014/12/18 16:42:27 UTC

[osgi:install in a shell] Unknown command entered

Hi,

I'm trying to create my first bundle with
http://karaf.apache.org/manual/latest-2.2.x/developers-guide/extending-console.html

But I can't install the bundle:

  Apache Karaf (4.0.0.M1)

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()> osgi:install -s mvn:my.package.etc...
[org.apache.karaf.shell.support.ShellUtil] : Unknown command entered
org.apache.felix.gogo.runtime.CommandNotFoundException: Command not found:
osgi:install
        at
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)
        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:92)
        at
org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:266)
        at
org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:163)
        at
org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:136)
        at
org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:76)
        at
org.apache.karaf.shell.impl.console.standalone.Main.main(Main.java:59)
Command not found: osgi:install

(Windows 7 with MINGW32, Karaf 4.0.0.0.M1)

Thanks ;-)

-- 
Arnaud Vandyck
http://about.me/avdyk

Re: [osgi:install in a shell] Unknown command entered

Posted by Arnaud Vandyck <av...@gmail.com>.
I installed the 3.x branche, console example is working, thanks for your
help.

2014-12-18 16:45 GMT+01:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:
>
> Arnaud,
>
> Please take a look on the "migration notes" and use the updated dev guide:
>
> http://karaf.apache.org/manual/latest/update-notes.html
> http://karaf.apache.org/manual/latest/developers-guide/index.html
>
> The osgi:* commands don't exist anymore: it's now bundle:* commands.
>
> Regards
> JB
>
>
> On 12/18/2014 04:42 PM, Arnaud Vandyck wrote:
>
>> Hi,
>>
>> I'm trying to create my first bundle with
>> http://karaf.apache.org/manual/latest-2.2.x/developers-guide/extending-
>> console.html
>>
>> But I can't install the bundle:
>>
>>    Apache Karaf (4.0.0.M1)
>>
>> 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()> osgi:install -s mvn:my.package.etc...
>> [org.apache.karaf.shell.support.ShellUtil] : Unknown command entered
>> org.apache.felix.gogo.runtime.CommandNotFoundException: Command not
>> found: osgi:install
>>          at
>> org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)
>>          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:92)
>>          at
>> org.apache.karaf.shell.impl.console.ConsoleSessionImpl.
>> run(ConsoleSessionImpl.java:266)
>>          at
>> org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:163)
>>          at
>> org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:136)
>>          at
>> org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:76)
>>          at
>> org.apache.karaf.shell.impl.console.standalone.Main.main(Main.java:59)
>> Command not found: osgi:install
>>
>> (Windows 7 with MINGW32, Karaf 4.0.0.0.M1)
>>
>> Thanks ;-)
>>
>> --
>> Arnaud Vandyck
>> http://about.me/avdyk
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>


-- 
Arnaud Vandyck
http://about.me/avdyk

Re: [osgi:install in a shell] Unknown command entered

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Arnaud,

Please take a look on the "migration notes" and use the updated dev guide:

http://karaf.apache.org/manual/latest/update-notes.html
http://karaf.apache.org/manual/latest/developers-guide/index.html

The osgi:* commands don't exist anymore: it's now bundle:* commands.

Regards
JB

On 12/18/2014 04:42 PM, Arnaud Vandyck wrote:
> Hi,
>
> I'm trying to create my first bundle with
> http://karaf.apache.org/manual/latest-2.2.x/developers-guide/extending-console.html
>
> But I can't install the bundle:
>
>    Apache Karaf (4.0.0.M1)
>
> 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()> osgi:install -s mvn:my.package.etc...
> [org.apache.karaf.shell.support.ShellUtil] : Unknown command entered
> org.apache.felix.gogo.runtime.CommandNotFoundException: Command not
> found: osgi:install
>          at
> org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)
>          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:92)
>          at
> org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:266)
>          at
> org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:163)
>          at
> org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:136)
>          at
> org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:76)
>          at
> org.apache.karaf.shell.impl.console.standalone.Main.main(Main.java:59)
> Command not found: osgi:install
>
> (Windows 7 with MINGW32, Karaf 4.0.0.0.M1)
>
> Thanks ;-)
>
> --
> Arnaud Vandyck
> http://about.me/avdyk

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com