LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   LD_LIBRARY_PATh for staf lib (https://www.linuxquestions.org/questions/linux-newbie-8/ld_library_path-for-staf-lib-859922/)

bacharya 02-01-2011 12:51 AM

LD_LIBRARY_PATh for staf lib
 
I have deployed my application war file in tomcat. From there the application needs to access lib directory of staf.(Software Testing Automation Framework) which is inside opt/something/staf/lib. For that I have put the ld_library_path in a sh file in tomcat bin. Before running tomcat I am running the sh file. But when I run tomcat and access the webpage, I am getting a 500 error which I suppose is because of my application in tomcat not able to access staf/lib even though I set ld_lib_path. Any suggestion or thought highly appreciated.

paulsm4 02-01-2011 01:16 AM

You don't have to "guess" what's causing the error 500. Just look in the Tomcat logs.

Assuming your script is being invoked, please double check your syntax. "echo" the variable in your script (to make sure it's being set exactly like you think it is). Use "export LD_LIBRARY_PATH=/x/y/z" syntax. "source" your script (". myscript") unless you're absolutely sure Tomcat is being invoked AS PART OF THE SAME SCRIPT. And remember to fully qualify your path (e.g. "/opt/something/staf/lib", and not "opt/something/staf/lib").

bacharya 02-01-2011 01:41 AM

Unfortunately the tomcat logs doesn't say anything. And I have followed the step mentioned above while running the sh file and setting the path.


All times are GMT -5. The time now is 02:36 AM.