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=32879>. 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=32879 Summary: Can't override value of init parameter during deployment Product: Tomcat 5 Version: 5.0.27 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Catalina AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] To make the overriding of deployment time parameter a reality we'd need the following fix in method org.apache.catalina.core.ApplicationContext.mergeParameters(): ... ... for (int i = 0; i < params.length; i++) { if (params[i].getOverride()) { if (results.get(params[i].getName()) == null) -----------------------------------------------------^ results.put(params[i].getName(), params[i].getValue()); } else { results.put(params[i].getName(), params[i].getValue()); } } ... Should be fixed this way: ... for (int i = 0; i < params.length; i++) { if (params[i].getOverride()) { if (results.get(params[i].getName()) != null) -----------------------------------------------------^ results.put(params[i].getName(), params[i].getValue()); } else { results.put(params[i].getName(), params[i].getValue()); } } -- 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]