There is no requirement for the name of the native library to follow any pattern. You could have multiple libraries in the lib directory, and of course there is no way for them to all have the same name.
The "lib" directory should not be listed as a resource in the module. That is automatically loaded.
You have said in the past that the native library is compiled for 64 bit linux, but haven't provided evidence of that yet. Please execute "objdump -a librsacookieapi.so" and provide the output of that.
Thanks Erik and Greg,
I fixed this issue by adding LD_LIBRARY_PATH to librsacookieapi.so and i did not create any module for this , i just placed jar and .so files in the class path.