----------------------------------------------------------------
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!!!
----------------------------------------------------------------

I had the same problem, and the same solution as Wouter.  wrapper.env didn't
work at all, but servlet.*.InitArgs in zone.properties gave me what I
needed.

Then I posted a query about getting SSL session variables in my servlet.  I
didn't get any response here, but I did see the following info posted on the
mod_ssl maillist:

============================================================================
=
the latest version of Apache JServ (1.1.1b1) that you can get from
http://www.working-dogs.com/daily snapshots (or using the CVS repo from
java.apache.org) allows any env. vars to be sent over ajpv12 :
you'll have to add to jserv.conf config file :

ApJServEnvVar localName remoteName

by example:

ApJServEnvVar SSL_SESSION_ID SSL_SESSION_ID
ApJServEnvVar SSL_SERVER_CERTIFICATE SSL_SERVER_CERTIFICATE
ApJServEnvVar SSL_CLIENT_CERTIFICATE SSL_CLIENT_CERTIFICATE
ApJServEnvVar SSL_PROTOCOL SSL_PROTOCOL

The distinction between local & remote env names is a workaround for SSL
env names that were not compatible between all SSL implementations.
these env vars will be readable using :
HttpServletRequest.getAttribute()


see: https://ma-planete.net/servlets/SuperSnoop for results.

NB: this obsoletes the previous way to get them : you'll have to add
these new directives.

Jean-Luc Rochat
============================================================================
=

The above technique might be what you're looking for.

cheers
Kirk

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Wouter
> Boers
> On 17-Apr-2000 Jennifer Wu wrote:
> > Hi,
> >
> > I'm wondering if someone can tell me what's wrong with my attempts to
> > set my environment variables.  I'm using apache with jserv and
> > servlets...
> >
> > I'm trying to set an environment variable in jserv.properties like this:
> >
> >     wrapper.env=LD_LIBRARY_PATH=/test/path
> >
>
> Funny, I've had a go at this yesterday and dropped the whole 'wrapper.env'
> directive since I was not able to retrieve any variable via this
> directive.
>
> What I found that did work is either specify the initArgs and
> read them using
> getInitParameter(), which was not the way for me since I wanted a
> environment variable available not only to servlets but also to
> other classes
>
> Waht I think you want is specifiy the environtment variable as a
> argument to
> the JVM using wrapper.bin.parameters=-D[name]=[value]
>
> You can retrieve this value using System.getProperty("name"),
> which was exactly
> what I wanted. (seems to me that this is what the wrapper.env
> should do but
> doesn't, or am I missing a point here)
>
> --
> Mphasis Media BV.                         Interactive architects
> Wouter Boers <[EMAIL PROTECTED]>   http://www.MphasiS.com
> Phone: +31 (0)71 5238575                  Fax: +31 (0)71 5238576
> Wouter Boers <[EMAIL PROTECTED]>                http://www.ikke.net




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to