<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 7/11/16 11:00 PM, Tom Zeller wrote:<br>
</div>
<blockquote
cite="mid:DAF9A1C5-BFA2-42A5-82F6-8257B2C0D432@dragonacea.biz"
type="cite"><br>
<pre wrap="">
Also FWIW, after re-reading the Tomcat docs, I think context.xml can accept <context-param>s to avoid modifying web.xml. But I'm not sure, and plan on giving that a try when I get back to it.
</pre>
</blockquote>
<br>
Absolutely it can, I do that routinely. Actually, I'm not sure which
"context.xml" or <Context> you mean [1], since they can be
located in various places [2], but: You can absolutely set/override
context params for a specific web app completely in the container -
meaning completely external to the web app - without touching
web.xml or anything else in the war at all. You do that by putting
the params in the external <Context> deployment fragment, such
as we document as
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
conf/Catalina/localhost/idp.xml [3]. The syntax there is not
quite the same as web.xml; instead it's <Parameter> elements
[4]. But it absolutely it works, I've been doing it for probably a
decade.<br>
<br>
I *thought* Jetty could do something like this too, but off-hand I
don't have references (might have just been wishful
thinking/assuming).<br>
<br>
<br>
[1] <a class="moz-txt-link-freetext" href="https://tomcat.apache.org/tomcat-8.5-doc/config/context.html">https://tomcat.apache.org/tomcat-8.5-doc/config/context.html</a><br>
<br>
[2]
<a class="moz-txt-link-freetext" href="https://tomcat.apache.org/tomcat-8.5-doc/config/context.html#Defining_a_context">https://tomcat.apache.org/tomcat-8.5-doc/config/context.html#Defining_a_context</a><br>
<br>
[3]
<a class="moz-txt-link-freetext" href="https://wiki.shibboleth.net/confluence/display/IDP30/ApacheTomcat8">https://wiki.shibboleth.net/confluence/display/IDP30/ApacheTomcat8</a><br>
<br>
[4]
<a class="moz-txt-link-freetext" href="https://tomcat.apache.org/tomcat-8.5-doc/config/context.html#Context_Parameters">https://tomcat.apache.org/tomcat-8.5-doc/config/context.html#Context_Parameters</a><br>
</body>
</html>