My probleme was not it, you made an error in the mail.

-----Original Message-----
From: David Dankwerth [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 4:32 PM
To: Tomcat Developers List
Subject: RE: Passing environment vars through jk_mod.


U need to define :
SSLOptions +StdEnvVars +ExportCertData
so that mod_ssl makes these Vars accessible
and
JkEnvVar SSL_SERVER_CERT SSL_SERVER_CERT

i am not sure about the NONE value

/david


-----Original Message-----
From: Eduardo Jaunez S. [mailto:[EMAIL PROTECTED]
Sent: 24 February 2003 14:00
To: [EMAIL PROTECTED]
Subject: Passing environment vars through jk_mod.


Hi,
        I'm trying of pass some variables generated by mod_ssl into Apache 1.3.27
to Tomcat+Axis webservice through jk_mod. But no matter the way I define the
sentence JkEnvVar XXXX YYYY I can't see the environment var at another side.

¿Could anyone point me in the correct way to do this?

I'm using (httpd.conf):

        # JkEnvVar <Environment_Name> <Default_Value>
        JkEnvVar SSL_CLIENT_CERT NONE

and (jsp):

        System.getProperty()
        System.getProperties().propertyNames() and
        System.getenv() (but it's is deprecated and don't get compiled)


My JSP's and JWS's pages are working well, since I can read or invoke
(respectively) from a browser.


Atte.
        Eduardo Jaunez S.

P.S.: A more complete piece of configuration/code

Apache httpd.conf
-----------------
...
        JkWorkersFile   /MyDir/jakarta-tomcat-4.1.18/conf/jkworkers.properties
        JkLogFile               /MyDir/apache/logs/jk_log
        JkLogLevel              debug
        JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
        JkOptions               +ForwardKeySize +ForwardURICompat -ForwardDirectories
        JkRequestLogFormat "%w %V %T"
        JkMount                 /MyTest/* jkworker

        # JkEnvVar <Environment_Name> <Default_Value>
        JkEnvVar SSL_CLIENT_CERT NONE         # <--- Pass env var.
...



MyJSP.jsp
----------
...
    out.println("<h1>Here are the Properties:</h1>");
    e= System.getProperties().propertyNames();
    if( e!=null ) {
        out.println("<pre>");
        for (;e.hasMoreElements();) {
            String key = (String) e.nextElement();
            out.println("<font color=\"#FF8080\">"+key+"</font>" + ":=" +
                        "<font color=\"#8080FF\">"+System.getProperty(key)+"</font>");
        }
        out.println("</pre><p>");
    } else {
        out.println("Properties are not accessible<p>");
    }
...






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


________________________________________________________________________
This e-mail and its attachments are confidential. If you are not the
intended recipient of this e-mail message, please telephone or e-mail us
immediately, delete this message from your system and do not read, copy,
distribute, disclose or otherwise use this e-mail message and any
attachments.

Although ri3k Limited believes this e-mail and any attachments to be free of
any virus or other defect which may affect your computer, it is the
responsibility of the recipient to ensure that it is virus free and ri3k
Limited does not accept any responsibility for any loss or damage in any way
from its use.

ri3k Limited
Registered in England: 10-12 Ely Place, London, EC1N 6RY
Company Number: 3909745

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to