You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Nicolas Ottaviani (JIRA)" <ji...@apache.org> on 2014/01/16 18:54:19 UTC

[jira] [Commented] (KARAF-2600) Failed to get the session when running clinet.bat to connect karaf instance

    [ https://issues.apache.org/jira/browse/KARAF-2600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13873663#comment-13873663 ] 

Nicolas Ottaviani commented on KARAF-2600:
------------------------------------------

Hi,

I have the same problem with the Karaf realease 3.0.0.

When i run karaf.bat and i try to connect with client.bat, i have the same error "Failed to get the session."
I have the same problem when i run karaf as a service (with the wrapper).

But i don't have the problem with shell.bat. I use it to install karaf as service (wrapper:install) and it's work fine (but i can't connect to karaf :)).

I have tested it with Windows 7, Windows 8 with a 32 bits and a 64 bits JDK and i have the same results

I don't have problem on Linux. Everithing works fine !

Thank you.
Nicolas (Sorry for my english)



> Failed to get the session when running clinet.bat to connect karaf instance
> ---------------------------------------------------------------------------
>
>                 Key: KARAF-2600
>                 URL: https://issues.apache.org/jira/browse/KARAF-2600
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>         Environment: windows
>            Reporter: ChengRen
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 3.0.1
>
>
> After building the latest source code, when I execute the karaf.bat under assemblies\apache-karaf\target\assembly\bin to get a karaf instance, everything is ok. But,
> 1) when I run client.bat to connect the karaf instance, I get this output from console : "Failed to get the session."
> 2) when I run shell.bat, I get this output:
> Exception in thread "main" java.lang.NoClassDefFoundError: org/osgi/util/tracker/ServiceTracker
>         at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.createSecuredCommandProcessor(ConsoleImpl.java:227)
>         at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:181)
>         at org.apache.karaf.shell.console.impl.Main.run(Main.java:214)
>         at org.apache.karaf.shell.console.impl.Main.run(Main.java:158)
>         at org.apache.karaf.shell.console.impl.Main.run(Main.java:73)
>         at org.apache.karaf.shell.console.impl.Main.main(Main.java:54)
> Caused by: java.lang.ClassNotFoundException: org.osgi.util.tracker.ServiceTracker
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>         ... 6 more



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)