Re: Using native and ld_library_path

2005-02-02 Thread Andreas Andersson
Has no-one done this? I think the problem is when the already loaded .so-file wants to load other .so's. The java.library.path is set correctly but perhaps only for tomcat and not for the loaded .so. I've also tried to copy all of the required files to /usr/lib but without success. Andreas

Re: Using native and ld_library_path

2005-02-01 Thread Andreas Andersson
Caldarale, Charles R wrote: Take a look at: http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/step1.html Hi again. I did take a look but nothing helped me there and I still need help. My guess is that tomcat has some restrictions when it comes to loading native code. I have several

RE: Using native and ld_library_path

2005-01-27 Thread Caldarale, Charles R
From: Andreas Andersson [mailto:[EMAIL PROTECTED] Subject: Re: Using native and ld_library_path I never use System.loadLibrary() in the javacode that does work (outside tomcat), do I have to? Take a look at: http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/step1.html - Chuck

Using native and ld_library_path

2005-01-26 Thread Andreas Andersson
Hi! My application needs to use a native share library. When running normal java program from the commandline it works if I just set LD_LIBRARY_PATH to point to the .so-file. But since tomcat runs as suid (I guess thats why) LD_LIBRARY_PATH is ignored. What can I do instead? Is there any way I

Re: Using native and ld_library_path

2005-01-26 Thread Ben Souther
Have you tried setting LD_LIBRARY_PATH as a java option at Tomcat startup time? On Wed, 2005-01-26 at 10:00, Andreas Andersson wrote: Hi! My application needs to use a native share library. When running normal java program from the commandline it works if I just set LD_LIBRARY_PATH

Re: Using native and ld_library_path

2005-01-26 Thread Andreas Andersson
Ben Souther wrote: Have you tried setting LD_LIBRARY_PATH as a java option at Tomcat startup time? I have tried to export the value (export LD_LIBRARY_PATH=/path/to/so-file) in both catalina.sh and /etc/init.d/tomcat4. Is there any other way to do it? Could I do something like java

RE: Using native and ld_library_path

2005-01-26 Thread Caldarale, Charles R
From: Andreas Andersson [mailto:[EMAIL PROTECTED] Subject: Re: Using native and ld_library_path Could I do something like java -DLD_LIBRARY_PATH=/path/to/so-file ? Yes, except the property name is java.library.path (LD_LIBRARY_PATH is only the environment variable name). The default

Re: Using native and ld_library_path

2005-01-26 Thread Andreas Andersson
Caldarale, Charles R wrote: Yes, except the property name is java.library.path (LD_LIBRARY_PATH is only the environment variable name). The default for Linux systems is /usr/lib:/lib (for UNIX, it's just /usr/lib), so you could put the .so file there. I tried putting all of the files

problems with LD_LIBRARY_PATH --(SOLVED)-

2004-11-02 Thread Her, Andre
All, The problem is solved. rather than to call perl /usr/PP/perl/auth I call a ksh script setting the environment and exec perl with the command line. It work now. Many thanks to everybody, specially those who responded. Regards Andre Her BlarenbergLaan,2 2800 Mechelen Belgium Tel : +32

RE: problems with LD_LIBRARY_PATH --(SOLVED)-

2004-11-02 Thread Shapira, Yoav
Hi And thanks to you for posting your final approach and solution. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Her, Andre [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 11:03 AM To: '[EMAIL PROTECTED]' Subject: problems with LD_LIBRARY_PATH --(SOLVED

problems with LD_LIBRARY_PATH !

2004-10-29 Thread Her, Andre
All, I have ported a web application normally running on NT4 / ISS /Jrun to a tomcat 3.3.2. The results are mixed. servlets seems top work OK but some of them do a call to a perl script. The perl script is well called but the environment LD_LIBRARY_PATH is not set, so loading of modules

Re: problems with LD_LIBRARY_PATH !

2004-10-29 Thread dmu2201
I have tried every thing I could think of, even including a $ENV{'LD_LIBRARY_PATH'} = /usr/lib:/usr/local/lib:/usr/local/perl/lib; in the perl script, but still fails loading libraries *.so !! Any idea someone !? Many thanks in advances Regards Andre How do you start your Tomcat?! Trough

RE: problems with LD_LIBRARY_PATH !

2004-10-29 Thread Her, Andre
for the moment I am starting tomcat with $TOMCAT_HOME/bin/startup. I have included # Shell script to startup the server LD_LIBRARY_PATH=/usr/lib:/usr/local/lib/:/usr/local/perl5/lib:/usr/java/lib ;export LD_LIBRARY_PATH TOMCAT_HOME=/usr/tomcat/tomcat ;export TOMCAT_HOME BASEDIR

Re: problems with LD_LIBRARY_PATH !

2004-10-29 Thread phil campaigne
Her, Andre wrote: All, I have ported a web application normally running on NT4 / ISS /Jrun to a tomcat 3.3.2. The results are mixed. servlets seems top work OK but some of them do a call to a perl script. The perl script is well called but the environment LD_LIBRARY_PATH is not set, so loading

LD_LIBRARY_PATH

2002-07-12 Thread Johnny
To all Tomcat users : How can I set LD_LIBRARY_PATH in setclasspath.sh? or is there any alternate way to set the LD_LIBRARY_PATH in Tomcat 4.0.3 in Linux? Regards, Johnny. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: LD_LIBRARY_PATH

2002-07-12 Thread Fabio Mengue
Hi, Create in $TOMCAT/bin a file called setenv.sh. In there, put LD_LIBRARY_PATH and any other env variable you want (I have the entire db2profile file on setenv.sh). Fabio. Johnny wrote: To all Tomcat users : How can I set LD_LIBRARY_PATH in setclasspath.sh? or is there any alternate

RE: LD_LIBRARY_PATH

2002-07-12 Thread Sexton, George
Add the directory to /etc/ld.so.conf and run ldconfig. -Original Message- From: Johnny [mailto:[EMAIL PROTECTED]] Sent: 12 July, 2002 1:49 AM To: Tomcat Users List Subject: LD_LIBRARY_PATH To all Tomcat users : How can I set LD_LIBRARY_PATH in setclasspath.sh? or is there any