tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: Why is context.xml no longer copied to Catalina/localhost/myapp.xml?
Date Sun, 05 May 2013 16:09:45 GMT
On 05/05/2013 16:56, Jesse Barnum wrote:
> I thought that the purpose of having <Parameter> elements in the
> context.xml file was so that end users and server administrators
> could easily customize the application behavior of a deployed
> application.


> If that's true, then why is the context.xml file no longer extracted
> in Tomcat 7? Leaving it in the application directory means that it's
> going to be overwritten (losing those customizations) every time the
> server admin redeploys my application, right? Doesn't that seem like
> a bad idea? Am I missing something?

Not everyone agrees with that view:

> I know that I write a set of instructions for my customers to modify
> their server.xml and add the copyXML attribute to revert back to
> Tomcat 6 behavior, but why? Why not leave the default behavior the
> way it was before, so that context.xml files can be customized
> separately from the deployed application? I couldn't find any bug
> report / RFE in the Tomcat bug database explaining why this change
> was necessary or beneficial.

There is also an outstanding question of whether extracted context.xml
files are handled correctly.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message