tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: [tomcat-6.0.33] META-INF/context.xml Environment not working
Date Fri, 23 Sep 2011 03:07:45 GMT
2011/9/22 Tim Watts <tim@cliftonfarm.org>:
> 6.0.33

>        <Environment
>                name="configName"
>                value="${catalina.base}/local/xbasic/config/master.properties"
>                description="Full path name of the config file."
>                type="java.lang.String"/>

> I got it to work by removing the <env-entry> from web.xml.

You have to add override="false" to your <Environment> element. It is
tricky, but it is documented

http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Environment_Entries


BTW, I think <Parameter> (<context-param> in web.xml) are easier to
use. Note that it requires override="false" as well.

Best regards,
Konstantin Kolinko

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


Mime
View raw message