DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=32869>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=32869 Summary: DTD version in deployment descriptor ignored Product: Tomcat 5 Version: 5.0.30 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Unknown AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] In the deployment descriptor file webapps/<app>/WEB-INF/web.xml, the XML statement of DTD to be used is ignored without error or warning. Using this: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> ...is no different from using this: <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> The former has DTD tags listed for <resource-env-ref>, while the latter does not. Tomcat will always blindly accept the <resource-env-ref> tag, even when the DTD does not allow it (the 2.2 DTD does not allow this tag, but uses the tag without complaint). If a DTD version used is not supported, I would expect an error to be generated when trying to deploy the app. If a deprecated DTD is both listed and supported, I would perhaps expect a warning while still following the DTD. In all cases where a tag is not allowed according to the DTD, I would expect errors and not following of some other DTD without error or warning. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]