Updating war file

Depending on the contents of the compressed file, a single use of this option can replace files in, add new files to, and delete files from the installed application.

Each entry in the compressed file is treated as a single file and the path of the file from the root of the compressed file is treated as the relative path of the file in the installed application. The path provides the location of the compressed file before installation.

I've to update some JAR files, and consequentlyboth the WAR and the EAR files. Is it possible to do it without having to explode both the EAR and the WAR files into a directories structure, then to make changes, then torecreate both the WAR and the EAR files?

The Tomcat webapps directory is scanned by Tomcat periodically.

When a change is detected (addition, removal, or modification of a WAR), the update WAR is re-deployed automatically.

Which means I have to put it back and restart Tomcat. I have searched the Tomcat docs about it and am none the wiser.

(Oh yes: it's not actually called Quick summary: there are several conditions (like changing the war file, deleting the webapp or replacing it with new content) under which tomcat will undeploy the context including removing the context file.

Details: Whether tomcat does or doesn't do auto Deployment (means checking for changes in your descriptor as well as checking changes in the webapp directory) is driven by: deploy XML attribute documentation attribute documentation is worth reading (§ Standard Implementation).

Exhaustive auto Deploy user case, and when context is removed : i.e.

The messages do not adversely affect deployment of the WAR file, and even with the messages, you can update the WAR file on the server successfully.

Updating consists of adding a new file or module to an installed application, or replacing or removing an installed application, file or module.

Adds a new module to, or replaces a module in, the installed application.

Tags: , ,