https://bz.apache.org/bugzilla/show_bug.cgi?id=46263

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #9 from Mark Thomas <ma...@apache.org> ---
Sorry it has taken us so long to get back to this.

Since this issue was raised, we have clarified Tomcat's expected behavior in a
number of scenarios. That is documented here:
http://tomcat.apache.org/tomcat-9.0-doc/config/automatic-deployment.html
(adjust for your preferred version although it should be the same for 7, 8 and
9)

If the context.xml file is modified then the application has to be redeployed.
Redeployment does mean there is a small gap where requests may get lost.
Parallel deployment is the solution offered to this problem.

For your specific use case you should be able to use the deploy command with
the update option. The follopwing should work:
- test.war in webapps
- conf/Catalina/localhost/test.xml created (can just contain <Context />
- Use the text manager interface and do:
http://localhost:8080/manager/text/deploy?war=file:/d:/test1.war&path=/test&update=true

That should:
- replace webapps/test.war with d:/test2.war (test2.war will be renamed to
test.war)
- trigger a reload

It will work best is unpackWARs is true.

The autodeployment process is already fairly complex and I believe your use
case can be met with existing functionality so I am (finally) resolving this as
WONTFIX.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to