On 12/01/2011 14:27, pat...@rufflar.com wrote:
>> Particularly override
> Unfortunately not.
> The override setting does not seem to have any effect, I tried all 3
> values (true, false and to rely on the default)

Exact Tomcat version?

Mark

> 
> 
> Zitat von Mark Thomas <ma...@apache.org>:
> 
>> On 12/01/2011 09:37, pat...@rufflar.com wrote:
>>> Hi,
>>>
>>> I've got a question regarding enviroment parameters:
>>> Imagine a web application which web.xml defines an environment
>>> (env-entry) parameter (even empty) myParameter:
>>>
>>>    <env-entry>
>>>      <description>test</description>
>>>      <env-entry-name>myParameter</env-entry-name>
>>>      <env-entry-type>java.lang.String</env-entry-type>
>>>      <env-entry-value></env-entry-value>
>>>    </env-entry>
>>>
>>>
>>> I now like to override the value of this environment parameter using the
>>> server.xml of the server (or tomcat admin):
>>>        <Context ....>
>>>        <Environment
>>>             description="test"
>>>             name="myParameter"
>>>             type="java.lang.String"
>>>             value="test"/>
>>>        </Context>
>>>
>>>
>>> I'm having the problem that the application only "sees" the old value
>>> (which is defined in the web.xml). I am reading the value using JNDI:
>>>
>>> new InitialContext().lookup("java:comp/env/myParameter");
>>>
>>> I can reproduce this behaviour in tomcat 5.5 and tomcat 6.0.
>>> Who can help me?
>>
>> http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Environment_Entries
>>
>>
>> Particularly override
>>
>> Mark
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


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

Reply via email to