LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-01-2011, 01:51 AM   #1
bacharya
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, 02:16 AM   #2
paulsm4
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, 02:41 AM   #3
bacharya
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.
 
  


Reply


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 04:35 AM
Could Copying Something From /usr/lib to /lib stop connectivity? onesikgypo Linux - Newbie 12 08-23-2009 12:51 PM
[SOLVED] No _sqlite3.so in /usr/lib/python2.5/lib-dynload rshepard Slackware 3 11-12-2007 03:59 PM
audacity unable to locate required lib files present in /usr/lib/ adityavpratap Slackware 4 11-30-2006 07:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:26 PM.

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