You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Peter Rossbach <pr...@objektpark.de> on 2005/04/05 16:37:08 UTC

Syntax from JkEnvVar is changed

Hey,

I want transfer a static version number with every request

SetEnv config.version 1.0
JkEnvVar config.version

but I got this apache startup failure

>>>
Syntax error on line 25 of 
D:/tomcat/xxxx/mod_jk/mod_jk.conf:
JkEnvVar takes two arguments, Adds a name of environment variable that 
should be sent to servlet-engine

<<<

Env: Windows XP (SP2) Apache 2.0.53, mod_jk 1.2.10, Tomcat 5.5 HEAD


After I change it to

SetEnv config.version 1.0
JkEnvVar config.version none

config is working.

Other issue is, that only a request.getAttribute("config.version") give me access to the env attribute. The request.getAttributeNames() get only real container attribute names back.

Why mod_jk not transfer only those env var that really exists? How transfer a env var without value?
We must update the jk doc or change the semantic.

Peter




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org