I am using:
Platform: Redhat Linux 7.2
Web-Server: Apache with Apache JServ
Java: 1.4.0
 
I have made a java sample that calls a c-code through JNI. When I run the code, the c-library is loaded by java code and I can run the native function present inside the loaded library. It runs perfectly fine because I have set the LD_LIBRARY_PATH=path for the folder that contains the so (c library).
 
Now, when I try to communicate with the same library, in the same way but through servlets, it gives internal server error 500. I have tried a few variations but my conclusion here is that the library is not properly loaded or found by the servlet class (running through the apache web server).
 
Is there anything missing?
Kindly reply as soon as possible.
 

Reply via email to