----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Chris,
>Generally when the web server starts it runs the child processes
>as nobody/nobody.
No generally about it...this is set in httpd.conf.
If Jserv is auto started...it will inherit and only read what that user(from
httpd.conf) can access.
If manual, then whatever the jserv launching user can read.
Sam, sounds a bit dubious starting as root...but if you must(eg; port < 1000
etc). I wouldn't..
>Anything that jserv reads must be world
>readable, including the jserv configs, property files, class
>files, jar files etc.
This is a joke right? I like to add unix file permissioning to my security
layers...but I'm paranoid.
Anyway, Sam don't go down the conf/jar permission path....sounds like the
native library not linked as you expect...sorry not be of more help..
I think you can get the LD_LIB env var from System..or something...check
it's value in you servlet. Got to go, it's Pub time in London...and I'm
thirsty...
Have a good weekend!
>From: Chris Cheshire <[EMAIL PROTECTED]>
>----------------------------------------------------------------
>
>Generally when the web server starts it runs the child processes
>as nobody/nobody. Anything that jserv reads must be world
>readable, including the jserv configs, property files, class
>files, jar files etc. Sounds like this is the best place to check
>first. Make sure the files are in a directory that is at the
>least r-x for all other users, and that the files themselves
>are readable for all other users.
>
>HTH
>
>sjo wrote:
> >
> > ----------------------------------------------------------------
> > BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> > WHEN YOU POST, include all relevant version numbers, log files,
> > and configuration files. Don't make us guess your problem!!!
> > ----------------------------------------------------------------
> >
> > Hello
> >
> > I have a little Java servlet that uses some native methods. If I start
> > JServ in manual mode everything works fine, if I start JServ in
> > automatic mode, then I get an 'UnsatisfiedLinkError' when the method
> > is called (interestingly loading the library using System.loadLibrary
> > doesn't throw an exception). I suspect that there is a permission
>problem
> > with some files (in automatic mode the JVM runs under the web user,
> > in manual mode as root), but I have absolutely no idea what exactly
> > is the problem. I have also no idea how to get more information to
> > find the cause of the problem.
> >
> > I have tried explicitely adding /usr/lib (that's where the library with
>the
> > native methods is located) to LD_LIBRARY_PATH using the wrapper.env
> > parameter, no effect.
> >
> > Linux SUSE6.4
> > Apache Webserver from SUSE6.4 CD
> > Apache JServ 1.1.2
> > Blackdown JVM 1.1.7
> >
> > Thanks in advance for your help
> >
> > bye
> >
> > Sam Jordan
> >
> > --
> > --------------------------------------------------------------
> > Please read the FAQ! <http://java.apache.org/faq/>
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Search Archives:
> > <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
> > Problems?: [EMAIL PROTECTED]
>
>--
>Chris Cheshire
>Manager of Software Development
>bigredwire.com
>Phone : +1 805 560 6666 (w)
> +1 805 559 9166 (m)
>Fax : +1 805 560 8901
>Email : [EMAIL PROTECTED]
>
> Real Programmers don't draw flowcharts.
> Flowcharts are the illiterate's form of
> documentation. Cavemen drew flowcharts;
> look at how much good it did for them
>
>
>--
>--------------------------------------------------------------
>Please read the FAQ! <http://java.apache.org/faq/>
>To subscribe: [EMAIL PROTECTED]
>To unsubscribe: [EMAIL PROTECTED]
>Search Archives:
><http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
>Problems?: [EMAIL PROTECTED]
>
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]