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=7564>. 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=7564 Avoid hardcoding the default deployment descriptor location Summary: Avoid hardcoding the default deployment descriptor location Product: Tomcat 4 Version: Nightly Build Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: Catalina AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] o.a.c.startup.ContextConfig reads the default deployment descriptor from the location contained in the static final variable o.a.c.startup.Constants.defaultWebXml (prefixing this with the value of CATALINA_HOME). This value is currently hardcoded to "conf/web.xml" Products that embed the Catalina engine (using Embedded's API) may have a different directory structure and it would be nice to be able to programmatically specify the location of the default deployment descriptor rather than having to change the value of the Constants.defaultWebXml variable. e.g. StandardContext context = new StandardContext(); ... ... ContextConfig config = new ContextConfig(); config.setDefaultWebXml("/mywebserver/config/default-web.xml"); ((Lifecycle) context).addLifecycleListener(config); -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
