tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 45979] New: META-INF/context.xml does not replace conf/Catalina//[hostname]/ [appname].xml when war deployed
Date Thu, 09 Oct 2008 19:39:33 GMT

           Summary: META-INF/context.xml does not replace
                    conf/Catalina//[hostname]/ [appname].xml when war
           Product: Tomcat 5
           Version: 5.5.25
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina

I just discovered that if you update your META-INF/context.xml, create a war
file, put it into a stopped tomcat container, and delete the old expanded war
file contents - when tomcat starts - it does not replace the
Catalina/[hostname]/[appname].xml file when the war file is deployed.  It
remains the file from the previous (now replaced) war file.

I see this has come up before, and it was commented that that was a design

I think that is wrong.  

Now, rather than having a self-contained application - if I need to specify
something in the context.xml file - I can't just put it there, and allow my
installer programs to just put the war file in the correct place in tomcat.

Now, my installer utilities must be smart enough to go find and delete the 
Catalina/[hostname]/[appname].xml file every single time I make an update.

Why should the onus be on my installers to do that job?  I didn't even ask
tomcat to put that file there in the first place.  I put it in
META-INF/context.xml.  Tomcat copied it to the conf subfolder.  And now Tomcat
neglects to copy the updated file there.  

Additionally, the documentation for this
context.xml feature makes no mention of the fact that it simply copies the file
once (and only once - never noting future changes) into the server conf folder.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

View raw message