xpcom library server path settings??

109 views
Skip to first unread message

Gregory Gee

unread,
Jun 6, 2015, 12:15:31 AM6/6/15
to hbox...@googlegroups.com
Forum registration fails, so i will ask here.

I'm trying to run the server manually using the server downloaded zip file.  When I run the server and try and connect from a client, I get the following error.

2015.06.05-23:34:57.755 |E X C E P T I O N| TaskMgrQW | TaskQueueWorker
java.lang.UnsatisfiedLinkError: no vboxjxpcom in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
        at java.lang.Runtime.loadLibrary0(Runtime.java:849)
        at java.lang.System.loadLibrary(System.java:1088)
        at org.mozilla.xpcom.internal.JavaXPCOMMethods.registerJavaXPCOMMethods(JavaXPCOMMethods.java:66)
        at org.mozilla.xpcom.internal.MozillaImpl.initialize(MozillaImpl.java:48)
        at org.mozilla.xpcom.Mozilla.initialize(Mozilla.java:669)


I believe the default location your code looks is /usr/lib/virtualbox.  But my VB is installed in an alternate location.  How can I configure the server to know where my VB is installed?

Thanks.

Gregory Gee

unread,
Jun 6, 2015, 1:10:21 AM6/6/15
to hbox...@googlegroups.com
OK, I managed to turn on debug.  How do I set vbox.home?

2015.06.06-01:03:14.820 |   debug   | TaskMgrQW | EventManager | org.altherian.vbox4_2.xpcom.VBoxXpcomHypervisor@59e8a8 has registered for all events.
2015.06.06-01:03:14.820 |   debug   | TaskMgrQW | VBoxHypervisor | Options - /usr/lib/virtualbox
2015.06.06-01:03:14.820 |   debug   | TaskMgrQW | VBoxHypervisor | vbox.home - null
2015.06.06-01:03:14.820 |   debug   | TaskMgrQW | VBoxHypervisor | java.library.path - /usr/jdk/packages/lib/i386:/lib:/usr/lib
2015.06.06-01:03:14.820 |   debug   | TaskMgrQW | VBoxHypervisor | Lib exists - /usr/lib/virtualbox/libvboxjxpcom.so - false

Gregory Gee

unread,
Jun 6, 2015, 1:11:33 AM6/6/15
to hbox...@googlegroups.com
To be more specific, I am running from hbox-0.0.10-linux_amd64-server.zip.



On Saturday, June 6, 2015 at 12:15:31 AM UTC-4, Gregory Gee wrote:

Maxime Dor

unread,
Jun 6, 2015, 3:33:36 AM6/6/15
to hbox...@googlegroups.com
Hi Gregory,

To specify the vbox.home, when selecting the connector in Hyperbox Client, you have a text field right under. Simply put the value you would normally put for vbox.home in there.

About the forum, could you make a new topic and put the specific error you're getting (a screenshot would be nice too)? Thanks!
--
You received this message because you are subscribed to the Google Groups "Hyperbox - Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hbox-use+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/hbox-use.
To view this discussion on the web visit https://groups.google.com/d/msgid/hbox-use/2334890f-8dcc-42ce-9131-7d638300b3f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gregory Gee

unread,
Jun 6, 2015, 4:40:25 PM6/6/15
to hbox...@googlegroups.com


On Saturday, June 6, 2015 at 3:33:36 AM UTC-4, Max Dor wrote:
Hi Gregory,

To specify the vbox.home, when selecting the connector in Hyperbox Client, you have a text field right under. Simply put the value you would normally put for vbox.home in there.


I put the VB home (/opt/VirtualBox) in the text field, but I still get the error.  Looks like the text field fills in the 'Options' value. Also, the libvboxjxpcom.so is not in the VB home folder.  It is in a subdirectory.  Is there a server config file to set the vbox.home and the java.library.path to the proper values?

2015.06.06-16:32:32.441 |   debug   | TaskMgrQW | EventManager | org.altherian.vbox4_2.xpcom.VBoxXpcomHypervisor@461da2 has registered for all events.
2015.06.06-16:32:32.442 |   debug   | TaskMgrQW | VBoxHypervisor | Options - /opt/VirtualBox
2015.06.06-16:32:32.442 |   debug   | TaskMgrQW | VBoxHypervisor | vbox.home - null
2015.06.06-16:32:32.442 |   debug   | TaskMgrQW | VBoxHypervisor | java.library.path - /usr/jdk/packages/lib/i386:/lib:/usr/lib
2015.06.06-16:32:32.442 |   debug   | TaskMgrQW | VBoxHypervisor | Lib exists - /opt/VirtualBox/libvboxjxpcom.so - false
2015.06.06-16:32:32.505 |   debug   | TaskMgrQW | TaskQueueWorker | Request #1433763140249 [HBOX:HypervisorConnect] failed in an unexpected manner
2015.06.06-16:32:32.505 |E X C E P T I O N| TaskMgrQW | TaskQueueWorker
java.lang.UnsatisfiedLinkError: no vboxjxpcom in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
        at java.lang.Runtime.loadLibrary0(Runtime.java:849)
        at java.lang.System.loadLibrary(System.java:1088)
        at org.mozilla.xpcom.internal.JavaXPCOMMethods.registerJavaXPCOMMethods(JavaXPCOMMethods.java:66)
        at org.mozilla.xpcom.internal.MozillaImpl.initialize(MozillaImpl.java:48)
        at org.mozilla.xpcom.Mozilla.initialize(Mozilla.java:669)
 
About the forum, could you make a new topic and put the specific error you're getting (a screenshot would be nice too)? Thanks!

I tried to reproduce the registration and recovery problem, but looks like it fixed itself this morning.  Still waiting for the activation email.

Maxime Dor

unread,
Jun 6, 2015, 5:05:17 PM6/6/15
to Gregory Gee, hbox...@googlegroups.com
Put the path to the subdirectory then.
vbox.home is a wrapper around an API call to directly set the base dir where the library should be found. My code use that direct API call which would override vbox.home if you pass an option.

If that fails, you can try by specifying the vbox.home into /opt/hboxd/bin/hboxd and/or /opt/hboxd/hyperbox
Both are bash script calling the java executable, you can add -Dvbox.home=/path/to/lib in there before the main class name.
I would still be interested into the log if the first option fails, so I can improve hyperbox on that.

Thanks!

Gregory Gee

unread,
Jun 8, 2015, 9:18:31 PM6/8/15
to hbox...@googlegroups.com, gee.g...@gmail.com
Thanks for the help. I found if I specified  /opt/VirtualBox/i386/ as the Option when connecting, it went fine.  For some reason it didn't like /opt/VirtualBox/amd64/ or just /opt/VirtualBox.

Thanks,
Greg

Maxime Dor

unread,
Jun 9, 2015, 1:24:15 AM6/9/15
to hbox...@googlegroups.com

Thank you for the feedback, I think I'll integrate some auto-discovery and add these 3 paths.

I guess this is for a test/self compiled version?

Gregory Gee

unread,
Jun 13, 2015, 4:36:51 PM6/13/15
to hbox...@googlegroups.com
I was just using the Linux zip package download from your site.  I made a post in the forum about it now..

Greg

Maxime Dor

unread,
Jun 13, 2015, 4:38:40 PM6/13/15
to hbox...@googlegroups.com
I was talking about the VirtualBox version
Reply all
Reply to author
Forward
0 new messages