tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 5145] - Add validation of server.xml
Date Sat, 15 Dec 2001 02:22:45 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5145>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5145

Add validation of server.xml





------- Additional Comments From craig.mcclanahan@sun.com  2001-12-14 18:22 -------
Note that it's not possible to build a DTD (or a Schema) that can completely
verify the contents of server.xml, even for the standard elements provided by
Tomcat.  Given that users can add their own implemenations of things like
Valves, Loggers, and Realms -- with configuration attributes that are not
knowable in advance -- it becomes technically infeasible to do this.

In addition, the particular issue you raised (complain about attributes that do
not have corresponding properties on the corresponding object) would break uses
of server.xml where different attributes are processed by different objects.  A
common case is the "className" attribute on (say) the <Valve> element, which is
processed by the Context or Host object, rather than by the Valve implementation
class itself.

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message