Ask Your Question
0

unable to bring up karaf on ubuntu machine."Failed to get the session"

asked 2015-02-10 02:47:23 -0700

anonymous user

Anonymous

Hi , I am new to java, so excuse if the questions are basic. I downloaded distribution: distribution-karaf-0.2.2-Helium-SR2 and did tar -xzvf distribution-karaf-0.2.2-Helium-SR2.tar.gz.

cd distribution-karaf-0.2.2-Helium-SR2

./bin/karaf

I am not getting the display : "OPEN DAYLIGHT"

or the command prompt.

Intially it gave error as JAVA_HOME not set.

did export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64/

ps -ef |grep karf

root 4456 4442 5 15:54 pts/1 00:00:04 /usr/lib/jvm/java-1.7.0-openjdk-amd64//bin/java -server -Xms128M -Xmx2048m -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass -XX:MaxPermSize=512m -Dcom.sun.management.jmxremote -Djava.endorsed.dirs=/usr/lib/jvm/java-1.7.0-openjdk-amd64//jre/lib/endorsed:/usr/lib/jvm/java-1.7.0-openjdk-amd64//lib/endorsed:/home/user/Downloads/distribution-karaf-0.2.2-Helium-SR2/lib/endorsed -Djava.ext.dirs=/usr/lib/jvm/java-1.7.0-openjdk-amd64//jre/lib/ext:/usr/lib/jvm/java-1.7.0-openjdk-amd64//lib/ext:/home/user/Downloads/distribution-karaf-0.2.2-Helium-SR2/lib/ext -Dkaraf.instances=/home/user/Downloads/distribution-karaf-0.2.2-Helium-SR2/instances -Dkaraf.home=/home/user/Downloads/distribution-karaf-0.2.2-Helium-SR2 -Dkaraf.base=/home/user/Downloads/distribution-karaf-0.2.2-Helium-SR2 -Dkaraf.data=/home/user/Downloads/distribution-karaf-0.2.2-Helium-SR2/data -Dkaraf.etc=/home/user/Downloads/distribution-karaf-0.2.2-Helium-SR2/etc -Djava.io.tmpdir=/home/user/Downloads/distribution-karaf-0.2.2-Helium-SR2/data/tmp -Djava.util.logging.config.file=/home/user/Downloads/distribution-karaf-0.2.2-Helium-SR2/etc/java.util.logging.properties -Dkaraf.startLocalConsole=true -Dkaraf.startRemoteShell=true -classpath /home/user/Downloads/distribution-karaf-0.2.2-Helium-SR2/lib/karaf-jaas-boot.jar:/home/user/Downloads/distribution-karaf-0.2.2-Helium-SR2/lib/karaf-jmx-boot.jar:/home/user/Downloads/distribution-karaf-0.2.2-Helium-SR2/lib/karaf-org.osgi.core.jar:/home/user/Downloads/distribution-karaf-0.2.2-Helium-SR2/lib/karaf.branding-1.0.2-Helium-SR2.jar:/home/user/Downloads/distribution-karaf-0.2.2-Helium-SR2/lib/karaf.jar org.apache.karaf.main.Main user 4582 4527 0 15:55 pts/2 00:00:00 grep --color=auto karaf

vim ../data/log/karaf.log

Feb 10, 2015 3:44:59 PM org.apache.karaf.main.Main launch INFO: Installing and starting initial bundles

Feb 10, 2015 3:45:00 PM org.apache.karaf.main.Main launch INFO: All initial bundles installed and set to start

Feb 10, 2015 3:45:00 PM org.apache.karaf.main.lock.SimpleFileLock lock INFO: Trying to lock /home/user/Downloads/distribution-karaf-0.2.2-Helium-SR2/lock

Feb 10, 2015 3:45:00 PM org.apache.karaf.main.lock.SimpleFileLock lock INFO: Lock acquired

Feb 10, 2015 3:45:00 PM org.apache.karaf.main.Main$KarafLockCallback lockAquired INFO: Lock acquired. Setting startlevel to 100

Feb 10, 2015 3:50:40 PM org.apache.karaf.main.lock.SimpleFileLock lock INFO: Trying to lock /home/user/Downloads/distribution-karaf-0.2.2-Helium-SR2/lock

Feb 10, 2015 3:50:40 PM org.apache.karaf.main.lock.SimpleFileLock lock INFO: Lock acquired

Feb 10, 2015 3:50:40 PM org.apache.karaf.main.Main$KarafLockCallback lockAquired INFO: Lock acquired. Setting startlevel to 100

Feb 10, 2015 3:52:51 PM org.apache.karaf.main.lock.SimpleFileLock lock INFO: Trying to lock /home/user/Downloads/distribution-karaf-0.2.2-Helium-SR2/lock ... (more)

edit retag flag offensive close merge delete

Comments

Net connection is not an issue ? Make sure of it.

faizan ( 2015-02-10 04:00:23 -0700 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-02-10 20:58:36 -0700

abpreen14 gravatar image

Resolved the issue. ODL takes time to come up.. it took nearly 6 mins for the ODL prompt to come. after that I am able to connect via client.

Thanks Abhinav

edit flag offensive delete publish link more

Comments

That's right!

duanguyuan ( 2015-09-08 03:41:54 -0700 )edit
0

answered 2015-09-08 03:41:18 -0700

Thanks for above solution, it helps me a lot! I signed up just now so I can not vote for you.Thanks anyway!

edit flag offensive delete publish link more
Login/Signup to Answer

Stats

Asked: 2015-02-10 02:47:23 -0700

Seen: 1,938 times

Last updated: Sep 08 '15