karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: karaf 2.2.0 shell and getServiceReferences
Date Thu, 14 Jul 2011 12:42:50 GMT
Hi,

you can try to use ls (for list service).

I'm gonna see what we changed around that between Karaf 2.1.x and Karaf 
2.2.x.

Regards
JB

On 07/14/2011 02:38 PM, Ilyushonak Barys wrote:
> Greetings!
>
> I would like to use the following command in Karaf 2.2.0 (actually
> 2.2.0-fuse-00-39):
>
> getService ((getServiceReferences javax.sql.DataSource
> '(dataSourceName=jdbc.mydatasource)') get 0)
>
> And I got:
>
> Command not found: getServiceReferences
>
> Could you please help me. How can I get a service instance in Karaf shell?
>
> PS.
>
> It worked with Karaf 2.1.4
>
> Here is the trace from log.
>
> org.apache.felix.gogo.runtime.CommandNotFoundException: Command not
> found: getServiceReferences
>
> at
> org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:471)[40:org.apache.karaf.shell.console:2.2.0.fuse-00-39]
>
> at
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[40:org.apache.karaf.shell.console:2.2.0.fuse-00-39]
>
> at
> org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[40:org.apache.karaf.shell.console:2.2.0.fuse-00-39]
>
> at
> org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[40:org.apache.karaf.shell.console:2.2.0.fuse-00-39]
>
> at
> org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[40:org.apache.karaf.shell.console:2.2.0.fuse-00-39]
>
> at
> org.apache.felix.gogo.runtime.Closure.eval(Closure.java:282)[40:org.apache.karaf.shell.console:2.2.0.fuse-00-39]
>
> at
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:336)[40:org.apache.karaf.shell.console:2.2.0.fuse-00-39]
>
> at
> org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[40:org.apache.karaf.shell.console:2.2.0.fuse-00-39]
>
> at
> org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[40:org.apache.karaf.shell.console:2.2.0.fuse-00-39]
>
> at
> org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[40:org.apache.karaf.shell.console:2.2.0.fuse-00-39]
>
> at
> org.apache.felix.gogo.runtime.Closure.eval(Closure.java:282)[40:org.apache.karaf.shell.console:2.2.0.fuse-00-39]
>
> at
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:336)[40:org.apache.karaf.shell.console:2.2.0.fuse-00-39]
>
> at
> org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[40:org.apache.karaf.shell.console:2.2.0.fuse-00-39]
>
> at
> org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[40:org.apache.karaf.shell.console:2.2.0.fuse-00-39]
>
> at
> org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[40:org.apache.karaf.shell.console:2.2.0.fuse-00-39]
>
> at
> org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:79)[40:org.apache.karaf.shell.console:2.2.0.fuse-00-39]
>
> at
> org.apache.karaf.shell.console.jline.Console.run(Console.java:240)[40:org.apache.karaf.shell.console:2.2.0.fuse-00-39]
>
> at java.lang.Thread.run(Thread.java:662)[:1.6.0_24]
>
> Regards,
>
> Boris
>
> _______________________________________________________
>
> The information contained in this message may be privileged and conf
> idential and protected from disclosure. If you are not the original
> intended recipient, you are hereby notified that any review,
> retransmission, dissemination, or other use of, or taking of any action
> in reliance upon, this information is prohibited. If you have received
> this communication in error, please notify the sender immediately by
> replying to this message and delete it from your computer. Thank you for
> your cooperation. Troika Dialog, Russia.
>
> If you need assistance please contact our Contact Center (+7495) 258
> 0500 or go to www.troika.ru/eng/Contacts/system.wbp
>

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

Mime
View raw message