It does:

karaf@root()> bundle:list
START LEVEL 100 , List Threshold: 50
ID | State | Lvl | Version | Name
---------------------------------

and the alias "la" too.

If it doesn't work, something's wrong in your container. Try to remove the data folder and start again.

Regards
JB

On 01/30/2015 03:57 PM, Milan Tomic wrote:
Hi JB,

Thank you very much for quick response.

Unfortunatelly, "bundle:list" command also doesn't exists. Here is list
of all available commands:

admin@engine>Display all 289 possibilities? (y or n)
*:apl                               *:config
*:dev                               *:error-codes
*:error-templating
*:exit                              *:feature
*:help                              *:http
*:icap
*:instance                          *:jaas
*:jdbc                              *:kar
*:log
*:package                           *:pfl
*:service                           *:shell
*:ssh
*:system                            activate
alias                               apl
apl:list
cancel                              cat
cl                                  clear
clone
completion                          config
config:cancel                       config:delete
config:edit
config:list                         config:property-append
config:property-delete              config:property-list
config:property-set
config:update                       connect
create                              datasources
date
deactivate                          delete
destroy                             details                             dev
dev:dump-create                     display
dump-create                         each
echo
edit                                env
error-codes                         error-codes:list
error-templating
error-templating:list               error-templating:test
exception-display                   exec
execute
exit                                exports
feature                             feature:info
feature:install
feature:list                        feature:repo-add
feature:repo-list                   feature:repo-refresh
feature:repo-remove
feature:uninstall                   feature:version-list
framework                           get
grep
group-add                           group-delete
group-role-add                      group-role-delete
halt
head                                help
history                             http
http:list
icap                                icap:list-listener
icap:start-listener                 icap:stop-listener                  if
imports                             info
install                             instance
instance:clone
instance:connect                    instance:create
instance:destroy                    instance:list
instance:opts-change
instance:rename                     instance:rmi-registry-port-change
instance:rmi-server-port-change     instance:ssh-host-change
instance:ssh-port-change
instance:start                      instance:status
instance:stop                       jaas
jaas:cancel
jaas:group-add                      jaas:group-delete
jaas:group-role-add                 jaas:group-role-delete
jaas:pending-list
jaas:realm-list                     jaas:realm-manage
jaas:role-add                       jaas:role-delete
jaas:update
jaas:user-add                       jaas:user-delete
jaas:user-list                      java
jdbc
jdbc:create                         jdbc:datasources
jdbc:delete                         jdbc:execute
jdbc:info
jdbc:query                          jdbc:tables
kar                                 kar:create
kar:install
kar:list                            kar:uninstall
la                                  ld                                  lde
list                                list-listener
log                                 log:clear
log:display
log:exception-display               log:get
log:list                            log:log
log:set
log:tail                            logout
ls                                  man
more
name                                new
opts-change                         package
package:exports
package:imports                     pending-list
pfl                                 pfl:list
printf
property                            property-append
property-delete                     property-list
property-set
query                               realm-list
realm-manage                        rename
repo-add
repo-list                           repo-refresh
repo-remove                         rmi-registry-port-change
rmi-server-port-change
role-add                            role-delete
scr:activate                        scr:deactivate
scr:details
scr:list                            service
service:list                        service:wait                        set
shell                               shell:alias
shell:cat                           shell:clear
shell:completion
shell:date                          shell:each
shell:echo                          shell:edit
shell:env
shell:exec                          shell:grep
shell:head                          shell:history
shell:if
shell:info                          shell:java
shell:logout                        shell:more
shell:new
shell:printf                        shell:sleep
shell:sort                          shell:source
shell:stack-traces-print
shell:tac                           shell:tail
shell:threads                       shell:watch
shell:wc
shutdown                            sleep
sort                                source                              ssh
ssh-host-change                     ssh-port-change
ssh:ssh                             ssh:sshd
sshd
stack-traces-print                  start
start-level                         start-listener
status
stop                                stop-listener
system                              system:framework
system:name
system:property                     system:shutdown
system:start-level                  system:version
tables
tac                                 tail
test                                threads
uninstall
update                              user-add
user-delete                         user-list
version
version-list                        wait
watch                               wc

Kind regards,
Milan



On Friday, January 30, 2015 3:42 PM, Jean-Baptiste Onofré
<[email protected]> wrote:


Hi,

as you can see there:

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

osgi:list has been replaced by bundle:list.

Regards
JB

On 01/30/2015 03:23 PM, Milan Tomic wrote:
 >
 > When I start Karaf 3.0.2 using PAX-EXAM/JUnit and connect as admin using
 > ./client shell script then I got:
 >
 > Command not found: osgi:list
 >
 > and
 >
 > Command not found: bundle:list
 >
 > and "list" command produces (shorted):
 >
 > ----------------------------------------------------------------
 > Pid:            org.apache.karaf.webconsole
 > BundleLocation:
 > mvn:org.apache.karaf.webconsole/org.apache.karaf.webconsole.console/3.0.2
 > Properties:
 >    felix.fileinstall.filename =
 >
file:/home/me/myproj/target/exam/9e823192-7525-4591-8041-7baf91a92bac/etc/org.apache.karaf.webconsole.cfg
 >    realm = karaf
 >    role = webconsole
 >    service.pid = org.apache.karaf.webconsole
 > ----------------------------------------------------------------
 >
 > but when I start the same Karaf 3.0.2 from command line then list
 > command produces output (shorted) like:
 >
 > 155 | Active    |  70 | 1.3.176            | H2 Database Engine
 > 156 | Active    |  70 | 2.0.1              | javax.ws.rs-api
 > 157 | Active    |  70 | 3.2.1              | Commons Collections
 > 158 | Active    |  70 | 2.4                | Commons Lang
 >
 > Am I missing something in my config:
 >
 >      public static Option[] getConfiguration() {
 >          MavenUrlReference karafUrl =
 > maven().groupId("myruntime").artifactId("my-runtime-kit")
 >                  .version("1.0.5").type("tar.gz");
 >
 >          MavenUrlReference featureUrl =
 > maven().groupId("myengine").artifactId("my-engine-feature")
 >
 > .version("1.0.3-SNAPSHOT").type("xml").classifier("features");
 >
 >          MavenUrlReference karafStandardRepo =
 > maven().groupId("org.apache.karaf.features").artifactId("standard")
 >                  .classifier("features").type("xml").version("3.0.2");
 >
 >          return options(
 >                  configureConsole().startLocalConsole(),
 >                  cleanCaches(true),
 >                  junitBundles(),
 >
 >
 >
KarafDistributionOption.editConfigurationFilePut("etc/protection.pgdb.cfg",
 >                          "protection.db.host", "my"),
 >
 >
 >
karafDistributionConfiguration().frameworkUrl(karafUrl).unpackDirectory(new
 > File("target/exam"))
 >                          .useDeployFolder(false),
 >                  keepRuntimeFolder(),
 >
 >                  KarafDistributionOption.features(karafStandardRepo,
"scr"),
 >
 >                  KarafDistributionOption.features(featureUrl,
 > "my-engine-feature")
 >          );
 >      }
 >
 > Thank you in advance,
 > Milan

 >

--
Jean-Baptiste Onofré
[email protected] <mailto:[email protected]>
http://blog.nanthrax.net <http://blog.nanthrax.net/>
Talend - http://www.talend.com <http://www.talend.com/>


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to