> From: Joe Lam [mailto:joe....@moni-media.net] > Subject: override context defined in server.xml doesn't work !?! > > I'm trying to override the <Context> in server.xml (coz > cpanel creates a default "blank" context for new vhost > in server.xml, and we shouldn't edit the server.xml coz > cpanel will update it whenever it wants)
AFAIK, you can't override <Context> elements in server.xml. You need to complain bitterly to cPanel, since what they're doing is specifically discouraged in the Tomcat doc; it's truly inappropriate behavior to do that to any reasonably modern version of Tomcat. > I wonder how does the "override=true" works ??? The override attribute only affects attributes specified in the global conf/context.xml or conf/[enginename]/[hostname]/context.xml.default; the former is shared by all webapps, the latter by all webapps of the given <Host>. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org