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=37943>.
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=37943

           Summary: Deploying new war file does not update
                    conf/catalina/localhost/[appname]
           Product: Tomcat 5
           Version: 5.5.12
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: major
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


This bug has some similarities to bug #33572.  I'm not sure if this is supposed
to be fixed already or if this is expected behavior, but here is the scenario:

- include META-INF/context.xml in myapp.war

- deploy myapp.war to webapps for the first time. This unpacks the war to
webapps/myapp and creates conf/catalina/localhost/myapp as a copy of the
META-INF/context.xml in the war file

- shutdown tomcat, delete conf/catalina/localhost/myapp, and make some change to
webapps/myapp/META-INF/context.xml

- restart tomcat. This recreates conf/catalina/localhost/myapp as a copy of the
context.xml FROM the war file (which is now different from the context.xml in
the unpacked webapps/myapp) - "PROBLEM #1" - This can be surprising and 
confusing.

- stop tomcat. Put a new mayapp.war file in webapps with a changed
META-INF/context.xml. Remove the old webapps/myapp directory.

- restart tomcat. This unpacks the new war and puts the new cntext.xml in
webapps/myapp/META-INF/context.xml. "PROBLEM #2" - The old
conf/catalina/localhost/myapp is unchanged and this is what tomcat uses, not the
new context.xml.

Workaround - Be sure to remove conf/catalina/localhost/myapp when deploying a
new myapp.war file.  "PROBLEM #3" - This required deployment step is not 
documented.

-- 
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]

Reply via email to