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]

Reply via email to