Post Reply 
Wow. I'm really impressed! Freenas?
09-02-2015, 00:07
Post: #18
RE: Wow. I'm really impressed! Freenas?
(08-02-2015 16:14)simoncn Wrote:  Copying your FreeBSD version of libohNet.so to the /usr/local/share/minimserver/data/tmp/native directory won't make any difference because this file is overwritten when you start MinimServer.

For this test, you would need to replace the libohNet.so and libohNetJni.so files within the archive file /usr/local/share/minimserver/libext/ohnet(linux-x86)-1.1.1452.zip by your FreeBSD versions, assuming that you have MinimServer update 57 installed.

OK, I see! I tried the following steps:
  • I cannot install MinimServer update 57, as this version is not available directly on your webpage. I installed MinimServer 0.8.3b instead. I guess that update 57 is only available via the online update function?
  • The libext-directory doesn't contain any files. I didn't find ohnet(linux-x86)-1.1.1452.zip anywhere else, but I found ohnet(linux-x64)-1.0.1356.zip in the lib-directory instead.
  • I should replace the libohNet.so and libohNetJni.so files within this archive. The problem is that the compilation of the ohnet-project (as documented in this thread) does indeed output a file called libohNet.so, but no libohNetJni.so. Is this a problem? I hope it's not, as the extensive test-suite completed successfully.
  • So I just replaced the file libohNet.so within the archive, and left the other file as it was. I want to mention that my version of libohNet.so is much larger than the existing file within the archive of MinimServer (12.810 KB vs. 1.803 KB).
  • When I try to start MinimServer now by executing ./bin/startc, it throws a different error than before:
Code:
root@testus_1:/usr/local/share/minimserver # bin/startc
MinimServer 0.8.3 update 50, Copyright (c) 2012-2014 Simon Nash. All rights reserved.
java.lang.UnsatisfiedLinkError: no ohNet 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.jminim.lib.OhNetService.createLibrary(OhNetService.java:569)
        at org.jminim.lib.OhNetService.createDeviceStack(OhNetService.java:476)
        at org.jminim.lib.OhNetService.createDeviceFactory(OhNetService.java:379)
        at org.jminim.lib.OhNetService.access$1800(OhNetService.java:47)
        at org.jminim.lib.OhNetService$Proxy.createDeviceFactory(OhNetService.java:945)
        at org.jminim.lib.MonitorService$Monitor.createDevice(MonitorService.java:259)
        at org.jminim.lib.MonitorService$Monitor.listenerAdded(MonitorService.java:333)
        at org.jminim.core.RuntimeImpl.addEventListener(RuntimeImpl.java:1258)
        at org.jminim.lib.RuntimeService$Proxy.addEventListener(RuntimeService.java:212)
        at com.minimserver.Server.doStart(Server.java:676)
        at com.minimserver.Server.start(Server.java:508)
        at org.jminim.core.ContextImpl.startComponent(ContextImpl.java:167)
        at org.jminim.core.ContextImpl.start(ContextImpl.java:92)
        at org.jminim.core.RootContextImpl.startComponent(RootContextImpl.java:47)
        at org.jminim.core.ContextImpl.start(ContextImpl.java:92)
        at org.jminim.core.RuntimeImpl.run(RuntimeImpl.java:1382)
        at org.jminim.core.LauncherImpl.run(LauncherImpl.java:975)
        at org.jminim.core.LauncherImpl.launch(LauncherImpl.java:107)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.jminim.launch.Launcher.doLaunch(Launcher.java:621)
        at org.jminim.launch.Launcher.launch(Launcher.java:204)
        at com.minimserver.launch.LaunchServer.main(LaunchServer.java:30)
MinimServer error: now stopped, use 'restart' or 'exit'
Enter command (? for help), or null to exit:
>
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Wow. I'm really impressed! Freenas? - airflow - 09-02-2015 00:07

Forum Jump:


User(s) browsing this thread: 1 Guest(s)