Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-01-2011, 12:51 AM   #1
LQ Newbie
Registered: Feb 2011
Posts: 2

Rep: Reputation: 0
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.
Old 02-01-2011, 01:16 AM   #2
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
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").
Old 02-01-2011, 01:41 AM   #3
LQ Newbie
Registered: Feb 2011
Posts: 2

Original Poster
Rep: Reputation: 0
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add <install_dir>/lib to LD_LIBRARY_PATH if already entry is there? your_shadow03 Linux - Newbie 2 02-12-2010 03:35 AM
Could Copying Something From /usr/lib to /lib stop connectivity? onesikgypo Linux - Newbie 12 08-23-2009 11:51 AM
[SOLVED] No in /usr/lib/python2.5/lib-dynload rshepard Slackware 3 11-12-2007 02:59 PM
audacity unable to locate required lib files present in /usr/lib/ adityavpratap Slackware 4 11-30-2006 06:06 AM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration