What chip architecture are you running?
You shouldn't have to compile anything if you're you're running x86 or x86_64
x86... I really don't know what I am doing wrong, I'll try to recompile asap.
Make sure you're using a proper JDK.
For instance, I have seen problems once when I was accidently using GCJ. We test it with Sun JDK usually.
You won't need to recompile if you're on x86 linux, kernel 2.6 or later and using Sun JDK 5+
I am using JDK 1.6.0_03 on a CentOS linux. I just tried to recompile the libAIO library and I still get the warning message.
I understand that libAIO is a standard Linux shared library. The JNI bindings for it are included in HornetQ's jars? I have the following jars in my application:
I am using hornet to implement persistent queueing in my application, I use it embedded in the JVM.
Thanks in advance,
I didn't realize you were using it embedded...
You need to define -Djava.library.path=<your-path-to-the.SO>
look at the /bin/run.sh with the distribution.... you will see it defined to the current directory.
You won't probably need to use the recompiled SO if you do this.
Ok, now I see that I didn't copy libHornet* to the server's /usr/lib before starting the application.
Now I did that, and I also set java.library.path to /usr/lib, but I still get the warning. Do I need to copy anything else?
You don't need to copy anything to /usr/lib...
All you need is to define the library.path.
Do you get the warning when you run the distributed server?
Well, I didn't have those libraries on the server, so I copied them to /usr/lib. I am not sure what you mean with distributed server?
on the download package, if you go to ./hornetq-dir/bin, you will see a run.sh
if you execute that run.sh, what do you see?
That's interesting - I've uploaded the distribuition to the server and ran the script you mentioned. The message is different, it says "Using AIO Journal" instead. Why is that?
Thanks for your patience!!!!
Just define the library as defined on run.sh and keep the proper .so on the path defined. It should be pretty simple as it is running on the run.sh. You must be doing some obvious mistake, but it's hard for me to tell. You just need to check your environment. Use the run.sh as the base for your script.
Still no luck
If I use "ps" command line app to find my app's process, I see the following:
/usr/java/jdk1.6.0_03/bin/java -Dpbid=MORouter -cp :./lib/BWLib_Connection-20090504_1385.jar -Djava.library.path=/usr/lib -Duser.timezone=America/Sao_Paulo com.purecontent.morouter.Main
And using "ls /usr/lib/|grep -i aio" I get the following list:
So I really don't know what to do