tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Watts <...@cliftonfarm.org>
Subject Re: [tomcat-6.0.33] META-INF/context.xml Environment not working
Date Fri, 23 Sep 2011 04:37:39 GMT
Wonderful. Thank You!

You're right about <Parameter>/<context-param> but I'm not sure all
standards conforming servlet containers are guaranteed to provide an
'external override' behaviour.


On Fri, 2011-09-23 at 07:07 +0400, Konstantin Kolinko wrote:
> 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
> 



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


Mime
View raw message