Digester.updateBodyText() has a piece of Tomcat code that is incompatible with the loop that was introduced for property replacement. Note: this problem only affects body text (always in web.xml), and not property replacement in server.xml attributes.
Change needed is, at the end of Digester.updateBodyText() replace this block:
if (out.equals(in)) { // No substitutions required. Don't waste memory creating // a new buffer return bodyText; } else { return new StringBuilder(out); }
with this return:
return new StringBuilder(out);
Testing, in web.xml, something like:
web.xml
<init-param> <param-name>foo</param-name> <param-value>${somesystemproperty}</param-value> </init-param>
- clones
-
JWS-1153 Body text property replacement fails
- Closed