You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Romaric <Ro...@irisa.fr> on 2011/09/27 11:00:23 UTC

Overriding web.xml parameters

Hi,

I'm using tomcat6 on fedora15 (installed via the tomcat6 package).

I have context parameters defined for my application in both web.xml and 
conf/Catalina/localhost/AppName.xml :

web.xml :

<context-param>
<param-name>name</param-name>
<param-value>value</param-value>
</context-param>

context.xml :

<Context>
<Parameter name="name value="value" override="false" />
</Context>

The problem is that the values in web.xml override those in context.xml 
when it should be the other way around.

Do you have any idea what the problem might be ?

Thanks.


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


Re: Overriding web.xml parameters

Posted by Romaric <Ro...@irisa.fr>.
Right, sorry for the typo.

The actual file is valid.
In addition, if I remove the parameters from web.xml, the values in 
context.xml are used.

Le 27/09/2011 11:10, Markus Schönhaber a écrit :
> 27.09.2011 11:00, Romaric:
>
>> context.xml :
>>
>> <Context>
>> <Parameter name="name value="value" override="false" />
> -----------------------^
>> </Context>
>>
>> The problem is that the values in web.xml override those in context.xml
>> when it should be the other way around.
>>
>> Do you have any idea what the problem might be ?
> The above is not valid XML. The attribute name isn't properly quoted.
>


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


Re: Overriding web.xml parameters

Posted by Markus Schönhaber <to...@list-post.mks-mail.de>.
27.09.2011 11:00, Romaric:

> context.xml :
> 
> <Context>
> <Parameter name="name value="value" override="false" />
-----------------------^
> </Context>
> 
> The problem is that the values in web.xml override those in context.xml 
> when it should be the other way around.
> 
> Do you have any idea what the problem might be ?

The above is not valid XML. The attribute name isn't properly quoted.

-- 
Regards
  mks



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


Re: Overriding web.xml parameters

Posted by Romaric <Ro...@irisa.fr>.
Ok.
Thank you for your help.
Link for those looking for the bug : 
https://issues.apache.org/bugzilla/show_bug.cgi?id=50700

Romaric

Le 27/09/2011 11:40, Rainer Frey a écrit :
> On 27.09.2011, at 11:38, Romaric wrote:
>
>> Le 27/09/2011 11:33, Rainer Frey a écrit :
>>> On 27.09.2011, at 11:00, Romaric wrote:
>>>
>>>> Hi,
>>>>
>>>> The problem is that the values in web.xml override those in context.xml when it should be the other way around.
>>>> Do you have any idea what the problem might be ?
>>> Which exact version? The behavior sounds like a bug that was present from (AFAIK) 6.0.30-6.0.32.
>> 6.0.32.
>> That might be the issue.
>> Is there a way to work this around other than removing the parameters from web.xml ?
> Not that I know of (other than up- or downgrading).
>
> Rainer
> ---------------------------------------------------------------------
> 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


Re: Overriding web.xml parameters

Posted by Rainer Frey <ra...@inxmail.de>.
On 27.09.2011, at 11:38, Romaric wrote:

> Le 27/09/2011 11:33, Rainer Frey a écrit :
>> On 27.09.2011, at 11:00, Romaric wrote:
>> 
>>> Hi,
>>> 
>>> The problem is that the values in web.xml override those in context.xml when it should be the other way around.
>>> Do you have any idea what the problem might be ?
>> Which exact version? The behavior sounds like a bug that was present from (AFAIK) 6.0.30-6.0.32.
> 6.0.32.
> That might be the issue.
> Is there a way to work this around other than removing the parameters from web.xml ?

Not that I know of (other than up- or downgrading).

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


Re: Overriding web.xml parameters

Posted by Romaric <Ro...@irisa.fr>.
6.0.32.
That might be the issue.
Is there a way to work this around other than removing the parameters 
from web.xml ?

Thanks for you help.


Le 27/09/2011 11:33, Rainer Frey a écrit :
> On 27.09.2011, at 11:00, Romaric wrote:
>
>> Hi,
>>
>> The problem is that the values in web.xml override those in context.xml when it should be the other way around.
>> Do you have any idea what the problem might be ?
> Which exact version? The behavior sounds like a bug that was present from (AFAIK) 6.0.30-6.0.32.
>
> Rainer
> ---------------------------------------------------------------------
> 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


Re: Overriding web.xml parameters

Posted by Rainer Frey <ra...@inxmail.de>.
On 27.09.2011, at 11:00, Romaric wrote:

> Hi,
> 
> The problem is that the values in web.xml override those in context.xml when it should be the other way around.
> Do you have any idea what the problem might be ?

Which exact version? The behavior sounds like a bug that was present from (AFAIK) 6.0.30-6.0.32.

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